diff os_support.c @ 2811:cbc58d02f912 libavformat

Fix compilation of os_support.c for MinGW with --disable-network Patch by Tom Harper <d.thomas.harper <at> gmail.com>
author ramiro
date Sun, 09 Dec 2007 14:39:01 +0000
parents 13b65f62e3a6
children 5e3ba0ab8782
line wrap: on
line diff
--- a/os_support.c	Wed Dec 05 04:32:45 2007 +0000
+++ b/os_support.c	Sun Dec 09 14:39:01 2007 +0000
@@ -25,6 +25,7 @@
 #include <fcntl.h>
 #include "os_support.h"
 
+#ifdef CONFIG_NETWORK
 #ifndef HAVE_SYS_POLL_H
 #ifdef HAVE_WINSOCK2_H
 #include <winsock2.h>
@@ -33,7 +34,6 @@
 #endif
 #endif
 
-#ifdef CONFIG_NETWORK
 #include "network.h"
 
 #if !defined(HAVE_INET_ATON)