summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-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>