diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-28 16:59:17 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-28 16:59:17 +0000 |
commit | ccd252b55369d9a74e515ec5445899ca3ad786b0 (patch) | |
tree | bcc33596b55bbdafbcf69d8a144e57459052f3a9 /package/openswan/openswan-2.4.7-001-oswlog.patch | |
parent | 3a65d24db5d239a2f9273cc4af87f292ef4414e9 (diff) |
- add openswan support. Compile tested only. Closes #200.
Diffstat (limited to 'package/openswan/openswan-2.4.7-001-oswlog.patch')
-rw-r--r-- | package/openswan/openswan-2.4.7-001-oswlog.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/openswan/openswan-2.4.7-001-oswlog.patch b/package/openswan/openswan-2.4.7-001-oswlog.patch new file mode 100644 index 000000000..45f9f4c14 --- /dev/null +++ b/package/openswan/openswan-2.4.7-001-oswlog.patch @@ -0,0 +1,30 @@ +--- openswan-2.4.7.orig/lib/libopenswan/oswlog.c 2004-10-17 01:42:13.000000000 +0200 ++++ openswan-2.4.7/lib/libopenswan/oswlog.c 2006-11-28 16:08:18.000000000 +0100 +@@ -41,9 +41,11 @@ bool + bool + logged_txt_warning = FALSE; /* should we complain about finding KEY? */ + ++#if !defined(NO_DEBUG) + void openswanlib_passert_fail(const char *pred_str, const char *file_str, + unsigned long line_no); + openswan_passert_fail_t openswan_passert_fail = openswanlib_passert_fail; ++#endif /* NO_DEBUG */ + + void + tool_init_log(void) +@@ -104,6 +106,7 @@ openswan_log(const char *message, ...) + syslog(LOG_WARNING, "%s", m); + } + ++#if !defined(NO_DEBUG) + void + openswan_loglog(int mess_no, const char *message, ...) + { +@@ -119,6 +122,7 @@ openswan_loglog(int mess_no, const char + if (log_to_syslog) + syslog(LOG_WARNING, "%s", m); + } ++#endif + + void + openswan_log_errno_routine(int e, const char *message, ...) |