commit:     b58e9ab433da5a8629d049ff3a73b348a27b5528
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 25 14:13:37 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Jan 25 14:13:50 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b58e9ab4

net-analyzer/nmap: nmap_error.cc: include time.h

Fixes: https://bugs.gentoo.org/676206
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-analyzer/nmap/files/nmap-7.70-time.patch | 10 ++++++++++
 net-analyzer/nmap/nmap-7.70.ebuild           |  5 ++---
 net-analyzer/nmap/nmap-9999.ebuild           |  3 ++-
 3 files changed, 14 insertions(+), 4 deletions(-)

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
index 00000000000..6d12ea8f96f
--- /dev/null
+++ b/net-analyzer/nmap/files/nmap-7.70-time.patch
@@ -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;
+ 

diff --git a/net-analyzer/nmap/nmap-7.70.ebuild 
b/net-analyzer/nmap/nmap-7.70.ebuild
index 692e3cb1290..e9bc260c7a9 100644
--- a/net-analyzer/nmap/nmap-7.70.ebuild
+++ b/net-analyzer/nmap/nmap-7.70.ebuild
@@ -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}"
 

diff --git a/net-analyzer/nmap/nmap-9999.ebuild 
b/net-analyzer/nmap/nmap-9999.ebuild
index a54dd5819b1..c282246d451 100644
--- a/net-analyzer/nmap/nmap-9999.ebuild
+++ b/net-analyzer/nmap/nmap-9999.ebuild
@@ -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}"
 

Reply via email to