summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-10 09:25:37 +0200
committerwm4 <wm4@nowhere>2014-07-10 09:25:37 +0200
commitd68d4dd9841dc22dcafbf1f69878caa91f617925 (patch)
tree6d8a914ddf986202950eb98c9d13f3f21c2145ac
parentf8c2dd1b785125e82b9f2d04f1618137db1e2378 (diff)
downloadmpv-d68d4dd9841dc22dcafbf1f69878caa91f617925.tar.bz2
mpv-d68d4dd9841dc22dcafbf1f69878caa91f617925.tar.xz
Revert "build: avoid defining _GNU_SOURCE"
This reverts commit 2e6a8f260ca169e2e1a5646eecfc322de6f77307. Too many problems for now, such as with OSX and asprintf().
-rw-r--r--stream/rar.c3
-rw-r--r--waftools/detections/compiler.py3
2 files changed, 1 insertions, 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 <assert.h>
#include <limits.h>
#include <stdio.h>
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"]