summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-10 16:19:42 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-10 16:19:42 +0000
commitf31bb35f90bec25673e3e174a193363759261912 (patch)
treecde099c6025069ca39ea58afad0a704254602bd0
parent555c74fc2930556f1b9ddce1e8114a61fa732489 (diff)
downloadrsyslog-f31bb35f90bec25673e3e174a193363759261912.tar.gz
rsyslog-f31bb35f90bec25673e3e174a193363759261912.tar.xz
rsyslog-f31bb35f90bec25673e3e174a193363759261912.zip
taking advantage of new build system - in the process of removing SYSV
-rw-r--r--syslogd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/syslogd.c b/syslogd.c
index 3dffc346..dcef9fc8 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -85,6 +85,8 @@
*
* A copy of the GPL can be found in the file "COPYING" in this distribution.
*/
+#include "config.h"
+
#ifdef __FreeBSD__
#define BSD
#endif
@@ -141,17 +143,12 @@
#define CONT_LINE 1 /* Allow continuation lines */
-#include "config.h"
-
#ifdef MTRACE
#include <mcheck.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#ifdef SYSV
-#include <sys/types.h>
-#endif
#include <utmp.h>
#include <ctype.h>
#define GNU_SOURCE
@@ -173,7 +170,7 @@
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/file.h>
-#ifdef SYSV
+#if HAVE_FCNTL_H
#include <fcntl.h>
#else
#include <sys/msgbuf.h>