[vlc-devel] commit: decomp: inclde spawn.h only if used ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Dec 21 14:51:15 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Dec 21 15:51:03 2008 +0200| [e00d4656da80a3cca09cda60a985b61fd8a448d5] | committer: Rémi Denis-Courmont 

decomp: inclde spawn.h only if used

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e00d4656da80a3cca09cda60a985b61fd8a448d5
---

 modules/stream_filter/decomp.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c
index da86731..2466b47 100644
--- a/modules/stream_filter/decomp.c
+++ b/modules/stream_filter/decomp.c
@@ -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)




More information about the vlc-devel mailing list