summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-18 14:16:05 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-18 14:16:05 +0000
commit779558133b0cfd348976dec1a01484496b469b6a (patch)
treed2e7875686632098249d94efc7bb06615162d09a
parent65d57a9fc357fead6bb3f3efea08ee8bd8a9729c (diff)
downloadrsyslog-779558133b0cfd348976dec1a01484496b469b6a.tar.gz
rsyslog-779558133b0cfd348976dec1a01484496b469b6a.tar.xz
rsyslog-779558133b0cfd348976dec1a01484496b469b6a.zip
restructured #include's somewhat thanks to Michael Biebl
-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 f21480b7..fe866327 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -64,6 +64,9 @@
#ifdef USE_GSSAPI
#include "gss-misc.h"
#endif
+#ifdef USE_NETZIP
+#include <zlib.h>
+#endif
#ifdef SYSLOG_INET
#define INET_SUSPEND_TIME 60 /* equal to 1 minute
diff --git a/syslogd.c b/syslogd.c
index d0040422..483fd415 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -196,6 +196,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 c1d765eb..43d4f0ea 100644
--- a/syslogd.h
+++ b/syslogd.h
@@ -24,8 +24,6 @@
#include "objomsr.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