From 14b55f2f95324d2260d96320a15e0832f0a23a00 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 14 Mar 2009 22:50:03 +0000 Subject: [PATCH] Fix build breakage due to the interplay between r189801 and r189824. In particular, vendor sources that aren't ready for gnu99 should still be compiled with gnu89. (Before r189824, these would have generated warnings if you tried to compile them in gnu99 mode, but the warnings went unheeded due to -Wno-error.) --- gnu/usr.bin/cc/Makefile.inc | 1 + usr.sbin/wpa/Makefile.inc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 2281f74de1e8..d7ed8a821806 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -18,6 +18,7 @@ GCC_TARGET= ${TARGET_ARCH}-undermydesk-freebsd CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\" #CFLAGS+= -DWANT_COMPILER_INVARIANTS +CSTD?= gnu89 # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined # to get the proper sizes in limits.h diff --git a/usr.sbin/wpa/Makefile.inc b/usr.sbin/wpa/Makefile.inc index 2f9b9cee174c..0d20034f6bc9 100644 --- a/usr.sbin/wpa/Makefile.inc +++ b/usr.sbin/wpa/Makefile.inc @@ -24,4 +24,6 @@ CFLAGS+=-I${WPA_DISTDIR}/src/utils CFLAGS+= -DCONFIG_CTRL_IFACE CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX +CSTD= gnu89 # XXX + .include