summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-06-24 11:37:28 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-06-24 11:37:28 +0200
commit5141493d3238e29655fbb4b250a612d435db000e (patch)
tree2ffc623f1de5ca2473d58d7f76bc2be028a46c67
parentb57911b01893efabef8ad834dd67b1ea3ce9d4be (diff)
downloadrsyslog-5141493d3238e29655fbb4b250a612d435db000e.tar.gz
rsyslog-5141493d3238e29655fbb4b250a612d435db000e.tar.bz2
rsyslog-5141493d3238e29655fbb4b250a612d435db000e.zip
impstats: solve build problem on FreeBSD
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=458
-rw-r--r--ChangeLog5
-rw-r--r--plugins/impstats/impstats.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8250a925..09e3578d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------
+Version 7.4.2 [v7.4-stable] 2013-06-??
+- solved build problems on FreeBSD
+ closes: http://bugzilla.adiscon.com/show_bug.cgi?id=458
+ Thanks to Christiano for reproting and suggesting patches
+---------------------------------------------------------------------------
Version 7.4.1 [v7.4-stable] 2013-06-17
- imjournal: add ratelimiting capability
The original imjournal code did not support ratelimiting at all. We
diff --git a/plugins/impstats/impstats.c b/plugins/impstats/impstats.c
index cdd205fd..79749e21 100644
--- a/plugins/impstats/impstats.c
+++ b/plugins/impstats/impstats.c
@@ -29,6 +29,10 @@
#include <pthread.h>
#include <fcntl.h>
#include <sys/uio.h>
+#if defined(__FreeBSD__)
+#include <sys/stat.h>
+#endif
+
#include "dirty.h"
#include "cfsysline.h"
#include "module-template.h"