From d68d4dd9841dc22dcafbf1f69878caa91f617925 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 Jul 2014 09:25:37 +0200 Subject: Revert "build: avoid defining _GNU_SOURCE" This reverts commit 2e6a8f260ca169e2e1a5646eecfc322de6f77307. Too many problems for now, such as with OSX and asprintf(). --- stream/rar.c | 3 --- waftools/detections/compiler.py | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/stream/rar.c b/stream/rar.c index ec68bcbfa2..31211c777b 100644 --- a/stream/rar.c +++ b/stream/rar.c @@ -25,9 +25,6 @@ * Preamble *****************************************************************************/ -// needed for asprintf() -#define _GNU_SOURCE - #include #include #include 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"] -- cgit v1.2.3