summaryrefslogtreecommitdiff
path: root/www/apache24/Makefile
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-01-25 14:01:27 +0000
committerjperkin <jperkin@pkgsrc.org>2018-01-25 14:01:27 +0000
commit293af4163aee701db54111261a85a07f16cb831b (patch)
treeb33007c93764b8857e1a57fece41377e93596ce7 /www/apache24/Makefile
parenta8eeb19cc8d9c90cc17ee1c500847f242f613c89 (diff)
downloadpkgsrc-293af4163aee701db54111261a85a07f16cb831b.tar.gz
apache24: Extend _XOPEN_SOURCE workaround to clang.
Diffstat (limited to 'www/apache24/Makefile')
-rw-r--r--www/apache24/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/apache24/Makefile b/www/apache24/Makefile
index e81b4203d84..56b881c4327 100644
--- a/www/apache24/Makefile
+++ b/www/apache24/Makefile
@@ -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 @@ CONFIGURE_ENV+= ac_cv_path_RSYNC=/nonexistent
.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