summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-10-12 14:11:02 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-10-12 14:11:02 +0000
commit1af199ccafdf68e0a1aefea44b9a6a47908f1cad (patch)
tree99e341f98d188f9c14beb8674fa78807619f1122
parent7e10c67a1737d19f5038ad1164b29804d47d9bce (diff)
downloadrsyslog-1af199ccafdf68e0a1aefea44b9a6a47908f1cad.tar.gz
rsyslog-1af199ccafdf68e0a1aefea44b9a6a47908f1cad.tar.xz
rsyslog-1af199ccafdf68e0a1aefea44b9a6a47908f1cad.zip
final touches for 1.11.0
-rw-r--r--freebsd/Makefile7
-rw-r--r--linux/Makefile4
-rw-r--r--rfc3195d.c11
3 files changed, 20 insertions, 2 deletions
diff --git a/freebsd/Makefile b/freebsd/Makefile
index a42edd08..27b2dac7 100644
--- a/freebsd/Makefile
+++ b/freebsd/Makefile
@@ -28,6 +28,9 @@ FEATURE_DB=1
# Enable regular expressions
FEATURE_REGEXP=1
+# Enable RFC 3195 support (REQUIRES LIBLOGGING 0.6.0 or above!)
+FEATURE_RFC3195=0
+
# Enable debug mode (much slower code)
FEATURE_DEBUG=0
@@ -55,6 +58,10 @@ MANDIR = /usr/share/man
F_REGEXP=-DFEATURE_REGEXP
.endif
+.if $(FEATURE_RFC3195) == 1
+ F_RFC3195=-DFEATURE_RFC3195
+.endif
+
.if $(FEATURE_DEBUG) == 0
DBG=-DNDEBUG
.endif
diff --git a/linux/Makefile b/linux/Makefile
index 4ec862f4..7b8da0a8 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -31,10 +31,10 @@ FEATURE_DB=0
FEATURE_REGEXP=1
# Enable RFC 3195 support (REQUIRES LIBLOGGING 0.6.0 or above!)
-FEATURE_RFC3195=1
+FEATURE_RFC3195=0
# Enable debug mode (much slower code)
-FEATURE_DEBUG=1
+FEATURE_DEBUG=0
#############################################################
# END OF USER SETTINGS #
diff --git a/rfc3195d.c b/rfc3195d.c
index 1bcbfd84..f7508be5 100644
--- a/rfc3195d.c
+++ b/rfc3195d.c
@@ -26,6 +26,16 @@
*/
#include <stdio.h>
+#ifndef FEATURE_RFC3195
+/* this is a trick: if RFC3195 is not to be supported, we just do an
+ * error message.
+ */
+int main()
+{
+ fprintf(stderr, "error: not compiled with FEATURE_RFC3195 - terminating.\n");
+ return(1);
+}
+#else
#include <unistd.h>
#include <signal.h>
#include <sys/socket.h>
@@ -236,6 +246,7 @@ int main(int argc, char* argv[])
srAPIExitLib(pAPI);
return 0;
}
+#endif /* #ifndef FEATURE_RFC3195 - main wrapper */
/*
* vi:set ai: