nmap: fix compilation with libcxx 10

Seems nmap's time header logic is broken.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-06-02 16:29:28 -07:00
committed by Nuno Goncalves
parent 4a1618f91f
commit 5f6f54b851
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -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;