nmap: fix compilation with libcxx 10
authorRosen Penev <rosenp@gmail.com>
Tue, 2 Jun 2020 23:29:28 +0000 (16:29 -0700)
committerNuno Goncalves <nunojpg@gmail.com>
Wed, 3 Jun 2020 08:31:23 +0000 (10:31 +0200)
Seems nmap's time header logic is broken.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/nmap/Makefile
net/nmap/patches/030-libcxx.patch [new file with mode: 0644]

index 648ade267e890a4cceee6f420ecbf4053d03b405..541124a43dc1100d9d45f86a15bc9c8929972c0e 100644 (file)
@@ -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 <nunojpg@gmail.com>
 
 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 (file)
index 0000000..c28aeea
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/nmap_error.cc
++++ b/nmap_error.cc
+@@ -134,6 +134,7 @@
+ #include "NmapOps.h"
+ #include "xml.h"
++#include <ctime>
+ #include <errno.h>
+ #if TIME_WITH_SYS_TIME
+ # include <sys/time.h>
+--- a/nping/EchoServer.cc
++++ b/nping/EchoServer.cc
+@@ -137,6 +137,7 @@
+ #include "NpingOps.h"
+ #include "ProbeMode.h"
+ #include <signal.h>
++#include <ctime>
+ extern NpingOps o;
+ extern EchoServer es;