diff options
author | fhajny <fhajny> | 2012-07-25 12:12:37 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2012-07-25 12:12:37 +0000 |
commit | 1f42788aed0c1e3ef2ee928f010e047f4251357a (patch) | |
tree | 623e3c13876ae32fddfc17161dabd4c56cbc67ad | |
parent | 80a115dafca766f5a5a1a7fd787435f5dad51a1e (diff) | |
download | pkgsrc-1f42788aed0c1e3ef2ee928f010e047f4251357a.tar.gz |
Fix build on SunOS with PHP_VERSION_DEFAULT=54.
SunOS does have if_indextoname, but config.m4 won't find it.
-rw-r--r-- | net/php-sockets/Makefile | 8 |
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" |