Build with -D_GNU_SOURCE to enable gnu extensions in header files


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3702 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.common b/Makefile.common
index 2415e88..029c2c9 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -118,6 +118,9 @@
 PROFILE =
 endif
 
+# Allow gnu extensions...
+CPPFLAGS += -D_GNU_SOURCE
+
 # -Wno-unused-parameter
 CompileCommonOpts := $(PROFILE) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include
 
diff --git a/Makefile.rules b/Makefile.rules
index 2415e88..029c2c9 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -118,6 +118,9 @@
 PROFILE =
 endif
 
+# Allow gnu extensions...
+CPPFLAGS += -D_GNU_SOURCE
+
 # -Wno-unused-parameter
 CompileCommonOpts := $(PROFILE) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include