aboutsummaryrefslogtreecommitdiffhomepage
path: root/waftools
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-07-10 09:25:37 +0200
committerGravatar wm4 <wm4@nowhere>2014-07-10 09:25:37 +0200
commitd68d4dd9841dc22dcafbf1f69878caa91f617925 (patch)
tree6d8a914ddf986202950eb98c9d13f3f21c2145ac /waftools
parentf8c2dd1b785125e82b9f2d04f1618137db1e2378 (diff)
Revert "build: avoid defining _GNU_SOURCE"
This reverts commit 2e6a8f260ca169e2e1a5646eecfc322de6f77307. Too many problems for now, such as with OSX and asprintf().
Diffstat (limited to 'waftools')
-rw-r--r--waftools/detections/compiler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py
index 96b7571a54..2d6f8c6d23 100644
--- a/waftools/detections/compiler.py
+++ b/waftools/detections/compiler.py
@@ -17,8 +17,7 @@ def __test_and_add_flags__(ctx, flags):
ctx.env.CFLAGS += ctx.env.CFLAGS_compiler
def __add_generic_flags__(ctx):
- ctx.env.CFLAGS += ["-D_ISOC99_SOURCE", "-D_POSIX_C_SOURCE=200809L",
- "-D_BSD_SOURCE", "-D_XOPEN_SOURCE=700",
+ ctx.env.CFLAGS += ["-D_ISOC99_SOURCE", "-D_GNU_SOURCE",
"-D_LARGEFILE_SOURCE", "-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE64_SOURCE",
"-std=c99", "-Wall"]