summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-12-15 23:48:23 -0800
committerKevin Mitchell <kevmitch@gmail.com>2015-02-03 14:34:52 -0800
commita501e2a6d1377dcb24a0b2e55aded28280efa3fe (patch)
treead1de05e37b87a0d37f9a5ef4be28481b2d5349f
parentacc5e8f57419debdb74234a228b44db75023e28b (diff)
downloadmpv-a501e2a6d1377dcb24a0b2e55aded28280efa3fe.tar.bz2
mpv-a501e2a6d1377dcb24a0b2e55aded28280efa3fe.tar.xz
osdep/subprocess-posix: remove __GLIBC__ guard
It's the wrong thing to check. For example it doesn't work on cygwin. Just live with the warning.
-rw-r--r--osdep/subprocess-posix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/osdep/subprocess-posix.c b/osdep/subprocess-posix.c
index e56e2401f7..c2120b2aa8 100644
--- a/osdep/subprocess-posix.c
+++ b/osdep/subprocess-posix.c
@@ -29,10 +29,9 @@
#include "common/common.h"
#include "stream/stream.h"
-// Normally, this must be declared manually, but glibc is retarded.
-#ifndef __GLIBC__
+// Normally, this must be declared manually, but glibc is retarded
+// resulting in a warning.
extern char **environ;
-#endif
// A silly helper: automatically skips entries with negative FDs
static int sparse_poll(struct pollfd *fds, int num_fds, int timeout)