[vlc-devel] commit: Include header only if needed (Pierre Ynard )

git version control git at videolan.org
Tue Nov 10 08:36:58 CET 2009


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov 10 08:35:24 2009 +0100| [b6d44be792493f2ad9364d255d758df5d60d8ce6] | committer: Pierre Ynard 

Include header only if needed

This fixes compilation on WinCE, where signal.h is missing

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

 src/extras/libc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/extras/libc.c b/src/extras/libc.c
index 60c7139..ada9f6e 100644
--- a/src/extras/libc.c
+++ b/src/extras/libc.c
@@ -47,9 +47,8 @@
 #   include <dirent.h>
 #endif
 
-#include <signal.h>
-
 #ifdef HAVE_FORK
+#   include <signal.h>
 #   include <sys/time.h>
 #   include <unistd.h>
 #   include <errno.h>




More information about the vlc-devel mailing list