OSDN Git Service

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 2786303..83f0820 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