Browse code

Include os_support.h only when needed

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

Luca Abeni authored on 2007/11/22 01:33:06
Showing 4 changed files
... ...
@@ -890,8 +890,6 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size);
890 890
 
891 891
 #ifdef HAVE_AV_CONFIG_H
892 892
 
893
-#include "os_support.h"
894
-
895 893
 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);
896 894
 
897 895
 #ifdef __GNUC__
... ...
@@ -23,6 +23,7 @@
23 23
 #include "avformat.h"
24 24
 #include <unistd.h>
25 25
 #include <fcntl.h>
26
+#include "os_support.h"
26 27
 
27 28
 #ifndef HAVE_SYS_POLL_H
28 29
 #ifdef HAVE_WINSOCK2_H
... ...
@@ -21,6 +21,7 @@
21 21
 #include "avformat.h"
22 22
 #include <unistd.h>
23 23
 #include "network.h"
24
+#include "os_support.h"
24 25
 #include <sys/time.h>
25 26
 
26 27
 typedef struct TCPContext {
... ...
@@ -21,6 +21,7 @@
21 21
 #include "avformat.h"
22 22
 #include <unistd.h>
23 23
 #include "network.h"
24
+#include "os_support.h"
24 25
 
25 26
 #ifndef IPV6_ADD_MEMBERSHIP
26 27
 #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP