Browse code

os_support: include some headers only when needed

Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/07/06 20:42:52
Showing 1 changed files
... ...
@@ -26,13 +26,13 @@
26 26
 
27 27
 #include "config.h"
28 28
 #include "avformat.h"
29
-#include <unistd.h>
30
-#include <fcntl.h>
31
-#include <sys/time.h>
32 29
 #include "os_support.h"
33 30
 
34 31
 #if CONFIG_NETWORK
32
+#include <fcntl.h>
33
+#include <unistd.h>
35 34
 #if !HAVE_POLL_H
35
+#include <sys/time.h>
36 36
 #if HAVE_WINSOCK2_H
37 37
 #include <winsock2.h>
38 38
 #elif HAVE_SYS_SELECT_H