summaryrefslogtreecommitdiffstats
path: root/rfc3195d.c
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 /rfc3195d.c
parent7e10c67a1737d19f5038ad1164b29804d47d9bce (diff)
downloadrsyslog-1af199ccafdf68e0a1aefea44b9a6a47908f1cad.tar.gz
rsyslog-1af199ccafdf68e0a1aefea44b9a6a47908f1cad.tar.xz
rsyslog-1af199ccafdf68e0a1aefea44b9a6a47908f1cad.zip
final touches for 1.11.0
Diffstat (limited to 'rfc3195d.c')
-rw-r--r--rfc3195d.c11
1 files changed, 11 insertions, 0 deletions
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: