summaryrefslogtreecommitdiffstats
path: root/plugins/imfile/imfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 09:59:35 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 09:59:35 +0000
commit24fd07ebe66c56430ca8a752ad1703d29c2f9da4 (patch)
tree01f73c02f158a07993e599f685a6358f3e9c0b42 /plugins/imfile/imfile.c
parent08b2347039b80b7362c517459723c0c4fdebfd37 (diff)
downloadrsyslog-24fd07ebe66c56430ca8a752ad1703d29c2f9da4.tar.gz
rsyslog-24fd07ebe66c56430ca8a752ad1703d29c2f9da4.tar.xz
rsyslog-24fd07ebe66c56430ca8a752ad1703d29c2f9da4.zip
(tried to) fix logerror() call under BSD (but can not yet compile, so this
may be an error...)
Diffstat (limited to 'plugins/imfile/imfile.c')
-rw-r--r--plugins/imfile/imfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
index 243004ab..c65fc436 100644
--- a/plugins/imfile/imfile.c
+++ b/plugins/imfile/imfile.c
@@ -32,6 +32,9 @@
#include <errno.h>
#include <fcntl.h>
#include <pthread.h> /* do NOT remove: will soon be done by the module generation macros */
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#include "rsyslog.h" /* error codes etc... */
#include "syslogd.h"
#include "cfsysline.h" /* access to config file objects */