diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 8bde1b8df0..983523b9f5 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -25,6 +25,7 @@ #include #include "os_support.h" +#ifdef CONFIG_NETWORK #ifndef HAVE_SYS_POLL_H #ifdef HAVE_WINSOCK2_H #include @@ -33,7 +34,6 @@ #endif #endif -#ifdef CONFIG_NETWORK #include "network.h" #if !defined(HAVE_INET_ATON)