From 2e75fc08cda3b7438cefb2f7283ec932773b21df Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 10 Oct 2022 22:03:32 +0200 Subject: [PATCH] nmap: fix build with GCC 12. --- srcpkgs/nmap/patches/gcc12.patch | 20 ++++++++++++++++++++ srcpkgs/nmap/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/nmap/patches/gcc12.patch diff --git a/srcpkgs/nmap/patches/gcc12.patch b/srcpkgs/nmap/patches/gcc12.patch new file mode 100644 index 00000000000..6a29383339e --- /dev/null +++ b/srcpkgs/nmap/patches/gcc12.patch @@ -0,0 +1,20 @@ +--- a/nmap_error.cc ++++ b/nmap_error.cc +@@ -145,6 +145,7 @@ + # include + # endif + #endif ++#include + + extern NmapOps o; + +--- a/nping/EchoServer.cc ++++ b/nping/EchoServer.cc +@@ -127,6 +127,7 @@ + * * + ***************************************************************************/ + ++#include + #include "nping.h" + #include "EchoServer.h" + #include "EchoHeader.h" diff --git a/srcpkgs/nmap/template b/srcpkgs/nmap/template index 9b507d649fd..6b336c3aa36 100644 --- a/srcpkgs/nmap/template +++ b/srcpkgs/nmap/template @@ -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"