summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--omfwd.c3
-rw-r--r--syslogd.c4
-rw-r--r--syslogd.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/omfwd.c b/omfwd.c
index 0aa5ed64..13e82077 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -65,6 +65,9 @@
#ifdef USE_GSSAPI
#include "gss-misc.h"
#endif
+#ifdef USE_NETZIP
+#include <zlib.h>
+#endif
MODULE_TYPE_OUTPUT
diff --git a/syslogd.c b/syslogd.c
index 3a35f732..753ed56f 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -203,6 +203,10 @@
#include <paths.h>
#endif
+#ifdef USE_NETZIP
+#include <unistd.h>
+#include <zlib.h>
+#endif
/* handle some defines missing on more than one platform */
#ifndef SUN_LEN
diff --git a/syslogd.h b/syslogd.h
index b94f6970..fe58b9b9 100644
--- a/syslogd.h
+++ b/syslogd.h
@@ -26,8 +26,6 @@
#include "template.h"
#ifdef USE_NETZIP
-#include <unistd.h>
-#include <zlib.h>
/* config param: minimum message size to try compression. The smaller
* the message, the less likely is any compression gain. We check for
* gain before we submit the message. But to do so we still need to