]> git.sesse.net Git - vlc/blobdiff - modules/stream_filter/decomp.c
decomp: inclde spawn.h only if used
[vlc] / modules / stream_filter / decomp.c
index da86731ecea2bd1091e0d0fe5bc8bb13e002def3..2466b47150ef36f5e7678c60b747b51e82bdb2ca 100644 (file)
@@ -31,7 +31,9 @@
 # define _POSIX_SPAWN (-1)
 #endif
 #include <fcntl.h>
-#include <spawn.h>
+#if (_POSIX_SPAWN >= 0)
+# include <spawn.h>
+#endif
 #include <sys/wait.h>
 #include <sys/ioctl.h>
 #if defined (__linux__) && defined (HAVE_VMSPLICE)