1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-23 06:39:01 +00:00

Include <sys/types.h> 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
This commit is contained in:
david
2012-03-04 05:18:08 +00:00
parent d7f56c9f4c
commit 894f858fd4
4 changed files with 4 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ int main() {
], [
AC_TRY_RUN([
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_IOCCOM_H
#include <sys/ioccom.h>
#endif

1
configure vendored
View File

@@ -6293,6 +6293,7 @@ else
/* end confdefs.h. */
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_IOCCOM_H
#include <sys/ioccom.h>
#endif

1
ncat/configure vendored
View File

@@ -4814,6 +4814,7 @@ else
/* end confdefs.h. */
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_IOCCOM_H
#include <sys/ioccom.h>
#endif

1
nping/configure vendored
View File

@@ -5254,6 +5254,7 @@ else
/* end confdefs.h. */
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_SYS_IOCCOM_H
#include <sys/ioccom.h>
#endif