Fix build on SunOS with PHP_VERSION_DEFAULT=54.

SunOS does have if_indextoname, but config.m4 won't find it.
This commit is contained in:
fhajny 2012-07-25 12:12:37 +00:00
parent ff9c9f7b4d
commit 1fa385569a

View file

@ -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"