summaryrefslogtreecommitdiff
path: root/debug_syslog.c
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-12-13 10:00:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-12-13 10:00:30 +0100
commitbf73de8ded17a3841b2fc0e4d5d10b490182e2ff (patch)
tree55a68a416e7a42ed0018c59b8fc77308ff308bcf /debug_syslog.c
parent19d68b15981f50f96b0220516334cd9622fe8b17 (diff)
Fix compilation without any modules. Add warning to debug_syslog if symbol not set, but the files is being compiled. Change symbol-not-set error in debug_filter to warning. Add do-not-print-date option for stdout output. Fix missing reference to extern debug_class_str.
Diffstat (limited to 'debug_syslog.c')
-rw-r--r--debug_syslog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug_syslog.c b/debug_syslog.c
index c3f8062..5ed82a9 100644
--- a/debug_syslog.c
+++ b/debug_syslog.c
@@ -37,6 +37,10 @@
#include <netinet/in.h>
#include <errno.h>
+#ifndef WITH_DBG_SYSLOG
+#warning debug_syslog.c compiled but WITH_DBG_SYSLOG not defined
+#endif
+
#define SYSLOG_MSGLEN 1024
#define SYSLOG_PRILEN 5
#define SYSLOG_TIMELEN 32