summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2015-03-16 19:22:00 +0000
committerFabian Groffen <grobian@gentoo.org>2015-03-16 19:22:00 +0000
commitae655a2dee2d28cd57d102d6ca00b11d82672910 (patch)
tree29ada4aa6333d1e683cacd25e09af70dbc303f2e /net-analyzer/netcat
parentMigrate to EAPI5 (diff)
downloadgentoo-2-ae655a2dee2d28cd57d102d6ca00b11d82672910.tar.gz
gentoo-2-ae655a2dee2d28cd57d102d6ca00b11d82672910.tar.bz2
gentoo-2-ae655a2dee2d28cd57d102d6ca00b11d82672910.zip
Fix compilation on Solaris
(Portage version: 2.2.14-prefix/cvs/SunOS i386, signed Manifest commit with key 0x5F75F607C5C74E89)
Diffstat (limited to 'net-analyzer/netcat')
-rw-r--r--net-analyzer/netcat/ChangeLog7
-rw-r--r--net-analyzer/netcat/netcat-110-r9.ebuild6
2 files changed, 9 insertions, 4 deletions
diff --git a/net-analyzer/netcat/ChangeLog b/net-analyzer/netcat/ChangeLog
index 97c1e22e6760..e88f9e59d518 100644
--- a/net-analyzer/netcat/ChangeLog
+++ b/net-analyzer/netcat/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-analyzer/netcat
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/ChangeLog,v 1.52 2014/07/14 19:30:19 jer Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/ChangeLog,v 1.53 2015/03/16 19:22:00 grobian Exp $
+
+ 16 Mar 2015; Fabian Groffen <grobian@gentoo.org> netcat-110-r9.ebuild:
+ Fix compilation on Solaris
14 Jul 2014; Jeroen Roovers <jer@gentoo.org> -netcat-110-r8.ebuild,
netcat-110-r9.ebuild:
diff --git a/net-analyzer/netcat/netcat-110-r9.ebuild b/net-analyzer/netcat/netcat-110-r9.ebuild
index 4535acbb7134..391865f6fe17 100644
--- a/net-analyzer/netcat/netcat-110-r9.ebuild
+++ b/net-analyzer/netcat/netcat-110-r9.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/netcat-110-r9.ebuild,v 1.12 2014/07/14 19:30:19 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/netcat-110-r9.ebuild,v 1.13 2015/03/16 19:22:00 grobian Exp $
EAPI=5
@@ -30,6 +30,8 @@ src_prepare() {
epatch "${DISTDIR}"/nc-v6-20000918.patch.gz patch
sed -i 's:#define HAVE_BIND:#undef HAVE_BIND:' netcat.c
sed -i 's:#define FD_SETSIZE 16:#define FD_SETSIZE 1024:' netcat.c #34250
+ [[ ${CHOST} == *-solaris* ]] && \
+ sed -i 's:gethostbyname2(\([^)]\+\)):getipnodebyname(\1, AI_DEFAULT, NULL):' netcat.c
}
src_compile() {