Remove duplicate sys/prctl.h configure check. Wrap another include in HAVE_SYS_PRCTL_H.

remotes/origin/master-1.2.x
Victor Julien 13 years ago
parent aaa5a78dfe
commit 842b01cc9c

@ -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 <sys/socket.h>
#endif
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h>
#endif
]])

@ -35,7 +35,9 @@
#ifdef HAVE_LIBCAP_NG
#include <cap-ng.h>
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h>
#endif
#include "threadvars.h"
#include "util-cpu.h"
#include "util-privs.h"

Loading…
Cancel
Save