Include os_support.h only when needed
authorLuca Abeni <lucabe72@email.it>
Wed, 21 Nov 2007 16:33:06 +0000 (16:33 +0000)
committerLuca Abeni <lucabe72@email.it>
Wed, 21 Nov 2007 16:33:06 +0000 (16:33 +0000)
Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avformat.h
libavformat/os_support.c
libavformat/tcp.c
libavformat/udp.c

index 5061b21c9ac4d97b9206baebf22cb795b004f791..900122c6f1ff27fbbc6723dd7701fb5355ec37d2 100644 (file)
@@ -890,8 +890,6 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size);
 
 #ifdef HAVE_AV_CONFIG_H
 
-#include "os_support.h"
-
 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);
 
 #ifdef __GNUC__
index 13f82f76bb4d96ce4045008520a5510ff21f56ee..8bde1b8df0956f5c4300d29b136796bb811a16a7 100644 (file)
@@ -23,6 +23,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include <fcntl.h>
+#include "os_support.h"
 
 #ifndef HAVE_SYS_POLL_H
 #ifdef HAVE_WINSOCK2_H
index 1b9b4f8458463cbe20e8bd64bae489430584e4f3..bea0fb9099cb5873f123c9fd03d3b928712ea025 100644 (file)
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"
+#include "os_support.h"
 #include <sys/time.h>
 
 typedef struct TCPContext {
index 9b1e1128a1037658250f9853f913a2e22ec699af..d5a48be3fa0456026a92dce648361208761b11cb 100644 (file)
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"
+#include "os_support.h"
 
 #ifndef IPV6_ADD_MEMBERSHIP
 #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP