nmap: fix build on MacOS X
authorAlexandru Ardelean <redacted>
Wed, 19 Oct 2016 12:21:54 +0000 (15:21 +0300)
committerNuno Goncalves <redacted>
Fri, 28 Oct 2016 16:31:38 +0000 (18:31 +0200)
The configure script (for libdnet) seems to find <net/bpf.h>
and detect some BSD stuff.

The lidnet's Makefile wants to include eth-bsd.c, arp-bsd.c
and other BSD friends.

This seems to put a cork on it, and no BSD stuff appears anymore.
[at least on my system].

Signed-off-by: Alexandru Ardelean <redacted>
net/nmap/Makefile

index a2b7c4705a96a2974b7407afad3696efbe19fe96..6fa208b5cf8b375694bc70007339237056edde52 100644 (file)
@@ -90,7 +90,9 @@ CONFIGURE_ARGS += \
        --without-liblua \
        --without-zenmap
 
-CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-builtin"
+CONFIGURE_VARS += \
+       ac_cv_dnet_bsd_bpf=no \
+       CXXFLAGS="$$$$CXXFLAGS -fno-builtin"
 
 ifeq ($(BUILD_VARIANT),ssl)
        CONFIGURE_ARGS += --with-openssl="$(STAGING_DIR)/usr"
git clone https://git.99rst.org/PROJECT