os_support: include some headers only when needed
authorMåns Rullgård <mans@mansr.com>
Tue, 6 Jul 2010 11:42:52 +0000 (11:42 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 6 Jul 2010 11:42:52 +0000 (11:42 +0000)
Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/os_support.c

index 27863031d19aab613befbfc09422e34392e09b99..83f0820662f71630b224cd3a4be20e3bf2427819 100644 (file)
 
 #include "config.h"
 #include "avformat.h"
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/time.h>
 #include "os_support.h"
 
 #if CONFIG_NETWORK
+#include <fcntl.h>
+#include <unistd.h>
 #if !HAVE_POLL_H
+#include <sys/time.h>
 #if HAVE_WINSOCK2_H
 #include <winsock2.h>
 #elif HAVE_SYS_SELECT_H