summaryrefslogtreecommitdiff
path: root/net/nmap/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/nmap/Makefile')
-rw-r--r--net/nmap/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/nmap/Makefile b/net/nmap/Makefile
index 990b2196902..961b9fcc8e5 100644
--- a/net/nmap/Makefile
+++ b/net/nmap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2005/12/08 21:59:17 salo Exp $
+# $NetBSD: Makefile,v 1.47 2006/01/23 15:19:24 rillig Exp $
#
DISTNAME= nmap-3.95
@@ -29,6 +29,13 @@ CONFIGURE_ARGS+= --without-nmapfe
MAKE_ENV+= CPPFLAGS=""
.endif
+# The SunPro C++ compiler does not understand __FUNCTION__, as well as
+# __func__. So __FILE__ is the nearest replacement.
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Msunpro)
+CFLAGS.SunOS+= -D__FUNCTION__=__FILE__
+.endif
+
.include "../../devel/pcre/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"