From 894f858fd44543ec8d7c3c43332a3a36305bb8ad Mon Sep 17 00:00:00 2001 From: david Date: Sun, 4 Mar 2012 05:18:08 +0000 Subject: [PATCH] Include in the PCAP_IS_SUITABLE test. The lack of this was causing PCAP_IS_SUITABLE to fail on Arch Linux, at least. I think that in some cases this caused both -L../libpcap and -lpcap to be added to the linker line, which could cause an error because of the need to link with -lnl. (We check for -lnl when --with-libpcap=included is used (since r23163), but the PCAP_IS_SUITABLE failure went around this check and allowed linking with the included libpcap without checking whether -lnl is required.) Here are reported build failures and responses: http://seclists.org/nmap-dev/2011/q3/449 http://seclists.org/nmap-dev/2011/q4/33 http://seclists.org/nmap-dev/2012/q1/369 --- acinclude.m4 | 1 + configure | 1 + ncat/configure | 1 + nping/configure | 1 + 4 files changed, 4 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 1db65d663..e32c09bc9 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -51,6 +51,7 @@ int main() { ], [ AC_TRY_RUN([ #include +#include #ifdef HAVE_SYS_IOCCOM_H #include #endif diff --git a/configure b/configure index 2b84e3535..8cfb48ea1 100755 --- a/configure +++ b/configure @@ -6293,6 +6293,7 @@ else /* end confdefs.h. */ #include +#include #ifdef HAVE_SYS_IOCCOM_H #include #endif diff --git a/ncat/configure b/ncat/configure index 2a8c760f2..1b87c4fe1 100755 --- a/ncat/configure +++ b/ncat/configure @@ -4814,6 +4814,7 @@ else /* end confdefs.h. */ #include +#include #ifdef HAVE_SYS_IOCCOM_H #include #endif diff --git a/nping/configure b/nping/configure index b9e21a446..3cf3763c0 100755 --- a/nping/configure +++ b/nping/configure @@ -5254,6 +5254,7 @@ else /* end confdefs.h. */ #include +#include #ifdef HAVE_SYS_IOCCOM_H #include #endif