From 842b01cc9c537f34552ccce357182ad3d0706623 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 16 Dec 2011 16:10:42 +0100 Subject: [PATCH] Remove duplicate sys/prctl.h configure check. Wrap another include in HAVE_SYS_PRCTL_H. --- configure.in | 5 +---- src/util-privs.c | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 6742860d88..19410ce024 100644 --- a/configure.in +++ b/configure.in @@ -91,12 +91,9 @@ AC_INIT(configure.in) # Checks for header files. 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/prctl.h], [], [], + AC_CHECK_HEADERS([sys/socket.h net/if.h], [], [], [[#ifdef HAVE_SYS_SOCKET_H #include -#endif -#ifdef HAVE_SYS_PRCTL_H -#include #endif ]]) diff --git a/src/util-privs.c b/src/util-privs.c index 72dae52dda..af87e9ab69 100644 --- a/src/util-privs.c +++ b/src/util-privs.c @@ -35,7 +35,9 @@ #ifdef HAVE_LIBCAP_NG #include +#ifdef HAVE_SYS_PRCTL_H #include +#endif #include "threadvars.h" #include "util-cpu.h" #include "util-privs.h"