summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2002-10-24 06:43:02 +0000
committerMike Frysinger <vapier@gentoo.org>2002-10-24 06:43:02 +0000
commit716d22eba295d1eb86a93abdb7be81a2b2f11910 (patch)
treeb133269726a834b62053d52146139a4c133d760c /net-analyzer
parenttouchups (diff)
downloadhistorical-716d22eba295d1eb86a93abdb7be81a2b2f11910.tar.gz
historical-716d22eba295d1eb86a93abdb7be81a2b2f11910.tar.bz2
historical-716d22eba295d1eb86a93abdb7be81a2b2f11910.zip
Added a gcc3.x fix
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/nmap/nmap-3.10_alpha3.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/net-analyzer/nmap/nmap-3.10_alpha3.ebuild b/net-analyzer/nmap/nmap-3.10_alpha3.ebuild
index 2f17ce40adb0..e1a3b31250ac 100644
--- a/net-analyzer/nmap/nmap-3.10_alpha3.ebuild
+++ b/net-analyzer/nmap/nmap-3.10_alpha3.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-3.10_alpha3.ebuild,v 1.1 2002/10/23 21:03:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-3.10_alpha3.ebuild,v 1.2 2002/10/24 06:43:02 vapier Exp $
+
+inherit gcc
IUSE="gtk gnome ipv6"
@@ -17,6 +19,13 @@ LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
src_compile() {
+ # fix header
+ if [ `gcc-major-version` -eq 3 ] ; then
+ cp nbase/nbase.h nbase/nbase.h.old
+ sed -e 's:char \*strcasestr://:' \
+ nbase/nbase.h.old > nbase/nbase.h
+ fi
+
use ipv6 \
&& econf --enable-ipv6 \
|| econf