net-analyzer/nmap: nmap_error.cc: include time.h
authorJeroen Roovers <jer@gentoo.org>
Fri, 25 Jan 2019 14:13:37 +0000 (15:13 +0100)
committerJeroen Roovers <jer@gentoo.org>
Fri, 25 Jan 2019 14:13:50 +0000 (15:13 +0100)
Fixes: https://bugs.gentoo.org/676206
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/nmap/files/nmap-7.70-time.patch [new file with mode: 0644]
net-analyzer/nmap/nmap-7.70.ebuild
net-analyzer/nmap/nmap-9999.ebuild

diff --git a/net-analyzer/nmap/files/nmap-7.70-time.patch b/net-analyzer/nmap/files/nmap-7.70-time.patch
new file mode 100644 (file)
index 0000000..6d12ea8
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/nmap_error.cc
++++ b/nmap_error.cc
+@@ -135,6 +135,7 @@
+ #include "xml.h"
+ #include <errno.h>
++#include <time.h>
+ extern NmapOps o;
index 692e3cb12908dd19243b38aae33fc010a8e8a419..e9bc260c7a9f5f0aec247ade0a38daacfdcc47a2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -25,13 +25,11 @@ IUSE="
        zenmap
 "
 NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
-
 REQUIRED_USE="
        system-lua? ( nse )
        ndiff? ( ${PYTHON_REQUIRED_USE} )
        zenmap? ( ${PYTHON_REQUIRED_USE} )
 "
-
 RDEPEND="
        dev-libs/liblinear:=
        dev-libs/libpcre
@@ -66,6 +64,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-7.25-CXXFLAGS.patch
        "${FILESDIR}"/${PN}-7.25-libpcre.patch
        "${FILESDIR}"/${PN}-7.31-libnl.patch
+       "${FILESDIR}"/${PN}-7.70-time.patch
 )
 S="${WORKDIR}/${MY_P}"
 
index a54dd5819b11308b51f7a84b6dc989e5ccc1df20..c282246d4512c0b000af71afa6f36c151da69a21 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -65,6 +65,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-7.25-CXXFLAGS.patch
        "${FILESDIR}"/${PN}-7.25-libpcre.patch
        "${FILESDIR}"/${PN}-7.31-libnl.patch
+       "${FILESDIR}"/${PN}-7.70-time.patch
 )
 S="${WORKDIR}/${MY_P}"