diff options
author | wm4 <wm4@nowhere> | 2014-07-09 22:10:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-09 22:10:33 +0200 |
commit | 2e6a8f260ca169e2e1a5646eecfc322de6f77307 (patch) | |
tree | db963a90bd72633e90097518ee2280fb212b4830 /stream/rar.c | |
parent | 5d3f1a17a79fc1f5850a36c5224c777e3c3027ad (diff) | |
download | mpv-2e6a8f260ca169e2e1a5646eecfc322de6f77307.tar.bz2 mpv-2e6a8f260ca169e2e1a5646eecfc322de6f77307.tar.xz |
build: avoid defining _GNU_SOURCE
_GNU_SOURCE defines the kitchen sink, and also prefers glibc definitions
where glibc and POSIX conflict. Even though POSIX is worth less than
toilet paper, we still prefer the POSIX definitions.
rar.c needs asprintf(), which is _GNU_SOURCE-only. So we define
_GNU_SOURCE too specifically for this file.
Diffstat (limited to 'stream/rar.c')
-rw-r--r-- | stream/rar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/rar.c b/stream/rar.c index 31211c777b..ec68bcbfa2 100644 --- a/stream/rar.c +++ b/stream/rar.c @@ -25,6 +25,9 @@ * Preamble *****************************************************************************/ +// needed for asprintf() +#define _GNU_SOURCE + #include <assert.h> #include <limits.h> #include <stdio.h> |