pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/php-sockets



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Feb  1 13:37:09 UTC 2018

Modified Files:
        pkgsrc/net/php-sockets: Makefile

Log Message:
php-sockets: Support newer GCC and clang on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/net/php-sockets/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/php-sockets/Makefile
diff -u pkgsrc/net/php-sockets/Makefile:1.14 pkgsrc/net/php-sockets/Makefile:1.15
--- pkgsrc/net/php-sockets/Makefile:1.14        Thu Feb 25 16:20:52 2016
+++ pkgsrc/net/php-sockets/Makefile     Thu Feb  1 13:37:09 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2016/02/25 16:20:52 jperkin Exp $
+# $NetBSD: Makefile,v 1.15 2018/02/01 13:37:09 jperkin Exp $
 
 MODNAME=               sockets
 CATEGORIES+=           net
@@ -11,7 +11,14 @@ CONFIGURE_ARGS+=     --enable-${MODNAME}=sha
 USE_PHP_EXT_PATCHES=   Yes
 
 CONFIGURE_ARGS.SunOS+= ac_cv_func_if_indextoname=yes
+
+.include "../../mk/compiler.mk"
+
+. if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
+CFLAGS.SunOS+=         -D_XOPEN_SOURCE=600
+.else
 CFLAGS.SunOS+=         -D_XOPEN_SOURCE=500     # msghdr extensions
+.endif
 
 .include "../../lang/php/ext.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index