summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/player/command.c')
-rw-r--r--mpvcore/player/command.c4
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"