summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/02-imkmsg-includes.patch14
-rw-r--r--debian/patches/series1
2 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/02-imkmsg-includes.patch b/debian/patches/02-imkmsg-includes.patch
new file mode 100644
index 0000000..8dda400
--- /dev/null
+++ b/debian/patches/02-imkmsg-includes.patch
@@ -0,0 +1,14 @@
+diff --git a/plugins/imkmsg/kmsg.c b/plugins/imkmsg/kmsg.c
+index 9ad98da..b771d68 100644
+--- a/plugins/imkmsg/kmsg.c
++++ b/plugins/imkmsg/kmsg.c
+@@ -32,7 +32,9 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <ctype.h>
++#ifdef OS_LINUX
+ #include <sys/klog.h>
++#endif
+ #include <json/json.h>
+
+ #include "rsyslog.h"
diff --git a/debian/patches/series b/debian/patches/series
index 2113a56..131af03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
# Debian patches for rsyslog
01-dont_create_db.patch
+02-imkmsg-includes.patch