diff options
author | wm4 <wm4@nowhere> | 2013-12-07 19:26:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-07 19:29:52 +0100 |
commit | 5b19a66cff1a4004a014ede2c1e2bf5d4613c3ab (patch) | |
tree | 5648e39414898f77f41cffb9f1c6684eae4a2318 | |
parent | e4f35516fbbe54d0a4b26491ce004a4fbdd2130b (diff) | |
download | mpv-5b19a66cff1a4004a014ede2c1e2bf5d4613c3ab.tar.bz2 mpv-5b19a66cff1a4004a014ede2c1e2bf5d4613c3ab.tar.xz |
command: fix compilation with MinGW
This include header is needed for the fork/exec code, which is inactive
on Windows anyway.
-rw-r--r-- | mpvcore/player/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mpvcore/player/command.c b/mpvcore/player/command.c index 6367c17fe5..05742e0da6 100644 --- a/mpvcore/player/command.c +++ b/mpvcore/player/command.c @@ -24,7 +24,6 @@ #include <assert.h> #include <time.h> #include <sys/types.h> -#include <sys/wait.h> #include <libavutil/avstring.h> #include <libavutil/common.h> @@ -67,6 +66,9 @@ #if HAVE_SYS_MMAN_H #include <sys/mman.h> #endif +#ifndef __MINGW32__ +#include <sys/wait.h> +#endif #include "osdep/io.h" |