packages/net/nmap/patches/030-libcxx.patch
Rosen Penev 5f6f54b851 nmap: fix compilation with libcxx 10
Seems nmap's time header logic is broken.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-03 10:31:23 +02:00

20 lines
391 B
Diff

--- 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;