os_support: include some headers only when needed

Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2010-07-06 11:42:52 +00:00
parent 81f460a373
commit 7fddac9320

View File

@ -26,13 +26,13 @@
#include "config.h" #include "config.h"
#include "avformat.h" #include "avformat.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include "os_support.h" #include "os_support.h"
#if CONFIG_NETWORK #if CONFIG_NETWORK
#include <fcntl.h>
#include <unistd.h>
#if !HAVE_POLL_H #if !HAVE_POLL_H
#include <sys/time.h>
#if HAVE_WINSOCK2_H #if HAVE_WINSOCK2_H
#include <winsock2.h> #include <winsock2.h>
#elif HAVE_SYS_SELECT_H #elif HAVE_SYS_SELECT_H