]> git.sesse.net Git - vlc/commitdiff
* modules/misc/network/ipv6.c: EVC compilation fixes.
authorGildas Bazin <gbazin@videolan.org>
Thu, 22 Sep 2005 21:19:33 +0000 (21:19 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 22 Sep 2005 21:19:33 +0000 (21:19 +0000)
modules/misc/network/ipv6.c

index f60bf81fd7ee12e94d7a0472e7f4f638f66ef785..b051891261ddeaf58c2fbafab4d8895655638870 100644 (file)
  * Preamble
  *****************************************************************************/
 #include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #include <string.h>
-#include <errno.h>
-#include <fcntl.h>
 
 #include <vlc/vlc.h>
 
+#include <errno.h>
+
+#ifdef HAVE_FCNTL_H
+#   include <fcntl.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#   include <sys/types.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( _MSC_VER ) && defined( _WIN32 )
-#   include <io.h>
 #endif
 
 #ifdef WIN32