From 5f6f54b851f71bea1fafba1b790bd8597773cffb Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 2 Jun 2020 16:29:28 -0700 Subject: [PATCH] nmap: fix compilation with libcxx 10 Seems nmap's time header logic is broken. Signed-off-by: Rosen Penev --- net/nmap/Makefile | 2 +- net/nmap/patches/030-libcxx.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 net/nmap/patches/030-libcxx.patch diff --git a/net/nmap/Makefile b/net/nmap/Makefile index 648ade267..541124a43 100644 --- a/net/nmap/Makefile +++ b/net/nmap/Makefile @@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nmap PKG_VERSION:=7.80 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Nuno Goncalves PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 diff --git a/net/nmap/patches/030-libcxx.patch b/net/nmap/patches/030-libcxx.patch new file mode 100644 index 000000000..c28aeeaee --- /dev/null +++ b/net/nmap/patches/030-libcxx.patch @@ -0,0 +1,20 @@ +--- a/nmap_error.cc ++++ b/nmap_error.cc +@@ -134,6 +134,7 @@ + #include "NmapOps.h" + #include "xml.h" + ++#include + #include + #if TIME_WITH_SYS_TIME + # include +--- a/nping/EchoServer.cc ++++ b/nping/EchoServer.cc +@@ -137,6 +137,7 @@ + #include "NpingOps.h" + #include "ProbeMode.h" + #include ++#include + + extern NpingOps o; + extern EchoServer es;