diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-12-15 23:48:23 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2015-02-03 14:34:52 -0800 |
commit | a501e2a6d1377dcb24a0b2e55aded28280efa3fe (patch) | |
tree | ad1de05e37b87a0d37f9a5ef4be28481b2d5349f /osdep | |
parent | acc5e8f57419debdb74234a228b44db75023e28b (diff) | |
download | mpv-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.
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/subprocess-posix.c | 5 |
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) |