From 6784ec536d000349911660e6c9d51cc86fbd942b Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 27 Apr 2012 16:01:58 +0200 Subject: [PATCH] Fix OpenBSD compilation. --- configure.in | 1 + src/util-logopenfile.c | 1 + 2 files changed, 2 insertions(+) diff --git a/configure.in b/configure.in index 6667abc964..2c138eb226 100644 --- a/configure.in +++ b/configure.in @@ -92,6 +92,7 @@ AC_INIT(configure.in) AC_CHECK_HEADERS([arpa/inet.h inttypes.h limits.h netdb.h poll.h signal.h stdint.h stdlib.h string.h syslog.h sys/ioctl.h sys/prctl.h sys/socket.h sys/syscall.h netinet/in.h sys/time.h unistd.h windows.h winsock2.h ws2tcpip.h]) AC_CHECK_HEADERS([sys/socket.h net/if.h sys/mman.h], [], [], [[#ifdef HAVE_SYS_SOCKET_H +#include #include #endif ]]) diff --git a/src/util-logopenfile.c b/src/util-logopenfile.c index 0bd96f1e64..0eae126aa2 100644 --- a/src/util-logopenfile.c +++ b/src/util-logopenfile.c @@ -23,6 +23,7 @@ * * File-like output for logging: regular files and sockets. */ +#include #include #include