From c093978cca6700ab36004a2b8c2281ed4544fda5 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 19 Oct 2016 15:21:54 +0300 Subject: [PATCH] nmap: fix build on MacOS X The configure script (for libdnet) seems to find 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 --- net/nmap/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/nmap/Makefile b/net/nmap/Makefile index a2b7c4705..6fa208b5c 100644 --- a/net/nmap/Makefile +++ b/net/nmap/Makefile @@ -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"