Rsyslog is an enhanced syslogd supporting, among others, MySQL, PostgreSQL, failover log destinations, syslog/tcp, fine grain output format control, high precision timestamps, queued operations and the ability to filter on any message part. It is quite compatible to stock sysklogd and can be used as a drop-in replacement.
21 lines
639 B
C
21 lines
639 B
C
$NetBSD: patch-plugins_imfile_imfile.c,v 1.1 2014/09/05 07:15:41 fhajny Exp $
|
|
|
|
Avoid unresolved symbol on inotify-less platforms.
|
|
--- plugins/imfile/imfile.c.orig 2014-07-15 13:34:03.000000000 +0000
|
|
+++ plugins/imfile/imfile.c
|
|
@@ -1348,11 +1348,14 @@ BEGINrunInput
|
|
CODESTARTrunInput
|
|
DBGPRINTF("imfile: working in %s mode\n",
|
|
(runModConf->opMode == OPMODE_POLLING) ? "polling" : "inotify");
|
|
+#if HAVE_INOTIFY_INIT
|
|
if(runModConf->opMode == OPMODE_POLLING)
|
|
iRet = doPolling();
|
|
else
|
|
iRet = do_inotify();
|
|
-
|
|
+#else
|
|
+ iRet = doPolling();
|
|
+#endif
|
|
DBGPRINTF("imfile: terminating upon request of rsyslog core\n");
|
|
ENDrunInput
|
|
|