pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/apache24 apache24: Extend _XOPEN_SOURCE workaround...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb51fab40860
branches:  trunk
changeset: 374569:fb51fab40860
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jan 25 14:01:27 2018 +0000

description:
apache24: Extend _XOPEN_SOURCE workaround to clang.

diffstat:

 www/apache24/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2e564ba2437f -r fb51fab40860 www/apache24/Makefile
--- a/www/apache24/Makefile     Thu Jan 25 13:55:43 2018 +0000
+++ b/www/apache24/Makefile     Thu Jan 25 14:01:27 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2018/01/01 21:18:55 adam Exp $
+# $NetBSD: Makefile,v 1.66 2018/01/25 14:01:27 jperkin Exp $
 #
 # When updating this package, make sure that no strings like
 # "PR 12345" are in the commit message. Upstream likes
@@ -37,7 +37,7 @@
 .include "../../mk/compiler.mk"
 
 CFLAGS.SunOS+= -D__EXTENSIONS__
-.if !empty(CC_VERSION:Mgcc-[6-9]*)
+.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
 CFLAGS.SunOS+= -D_XOPEN_SOURCE=600
 .else
 CFLAGS.SunOS+= -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1



Home | Main Index | Thread Index | Old Index