nmap: fix build with GCC 12.

This commit is contained in:
Leah Neukirchen 2022-10-10 22:03:32 +02:00
parent 5df8f14a70
commit 2e75fc08cd
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- a/nmap_error.cc
+++ b/nmap_error.cc
@@ -145,6 +145,7 @@
# include <time.h>
# endif
#endif
+#include <ctime>
extern NmapOps o;
--- a/nping/EchoServer.cc
+++ b/nping/EchoServer.cc
@@ -127,6 +127,7 @@
* *
***************************************************************************/
+#include <ctime>
#include "nping.h"
#include "EchoServer.h"
#include "EchoHeader.h"

View File

@ -2,7 +2,7 @@
pkgname=nmap
reverts="7.90_1 7.91_1"
version=7.80
revision=6
revision=7
build_style=gnu-configure
configure_args="--without-ndiff --with-openssl --with-zenmap $(vopt_with lua liblua)"
hostmakedepends="python"