summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/freebsd5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/freebsd b/config/freebsd
index e07054e..826e09c 100644
--- a/config/freebsd
+++ b/config/freebsd
@@ -13,7 +13,10 @@ fi
# Add "_XOPEN_SOURCE" define to cpp flags, to quiet warnings
# from /usr/include/sys/cdefs.h
-CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
+# (Unless we are using g++ as a C compiler)
+if test "X-g++" != "X-$CC"; then
+ CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
+fi
# Figure out C compiler flags
. $srcdir/config/gnu-flags