summaryrefslogtreecommitdiff
path: root/package/openswan/openswan-2.4.7-001-oswlog.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/openswan/openswan-2.4.7-001-oswlog.patch')
-rw-r--r--package/openswan/openswan-2.4.7-001-oswlog.patch30
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, ...)