pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/php-sockets php-sockets: Support newer GCC and cla...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee981eb76704
branches:  trunk
changeset: 374964:ee981eb76704
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Feb 01 13:37:09 2018 +0000

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

diffstat:

 net/php-sockets/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 6a3c671c9e78 -r ee981eb76704 net/php-sockets/Makefile
--- a/net/php-sockets/Makefile  Thu Feb 01 13:34:33 2018 +0000
+++ b/net/php-sockets/Makefile  Thu Feb 01 13:37:09 2018 +0000
@@ -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 @@
 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