summaryrefslogtreecommitdiffstats
path: root/klogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-06-11 08:39:23 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-06-11 08:39:23 +0000
commitf87e084925dec6b82734cd2dc44695633b0c3ee5 (patch)
tree200133b2bdf86d45f5fe9fb0470a3b94151f7ccc /klogd.c
parent81378442ff2a89b20595ee52a25b21383df7bf9d (diff)
downloadrsyslog-f87e084925dec6b82734cd2dc44695633b0c3ee5.tar.gz
rsyslog-f87e084925dec6b82734cd2dc44695633b0c3ee5.tar.xz
rsyslog-f87e084925dec6b82734cd2dc44695633b0c3ee5.zip
some more fixes for FEATURE_KLOGD mechanism
Diffstat (limited to 'klogd.c')
-rw-r--r--klogd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/klogd.c b/klogd.c
index a7087e4c..81cb3058 100644
--- a/klogd.c
+++ b/klogd.c
@@ -19,7 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#ifdef WITH_KLOGD
+#ifdef FEATURE_KLOGD
/*
* Steve Lord (lord@cray.com) 7th Nov 92
*
@@ -1170,11 +1170,12 @@ int main(argc, argv)
}
}
}
-#else /* #ifdef WITH_KLOGD */
+#else /* #ifdef FEATURE_KLOGD */
#include <stdio.h>
-void main()
+int main()
{
fprintf(stderr, "FEATURE_KLOGD was disabled during this build, so klogd is not available.\n");
+ return(1);
}
#endif /* #ifdef WITH_KLOGD */
/*