summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2012-07-25 12:12:37 +0000
committerfhajny <fhajny@pkgsrc.org>2012-07-25 12:12:37 +0000
commit1fa385569a76cad81f7bdc25d0f12c9b39269987 (patch)
tree623e3c13876ae32fddfc17161dabd4c56cbc67ad /net
parentff9c9f7b4d15e8646bd6fd3ebfb80e40e022ba33 (diff)
downloadpkgsrc-1fa385569a76cad81f7bdc25d0f12c9b39269987.tar.gz
Fix build on SunOS with PHP_VERSION_DEFAULT=54.
SunOS does have if_indextoname, but config.m4 won't find it.
Diffstat (limited to 'net')
-rw-r--r--net/php-sockets/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/php-sockets/Makefile b/net/php-sockets/Makefile
index 7a5be1f34be..848cd37a364 100644
--- a/net/php-sockets/Makefile
+++ b/net/php-sockets/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/06/12 02:14:41 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2012/07/25 12:12:37 fhajny Exp $
MODNAME= sockets
CATEGORIES+= net
@@ -10,5 +10,11 @@ CONFLICTS= php-sockets-[0-9]*
CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= ac_cv_func_if_indextoname=yes
+.endif
+
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"