diff options
author | Luca Abeni <lucabe72@email.it> | 2007-11-21 16:33:06 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2007-11-21 16:33:06 +0000 |
commit | 087b327287c657aa12108250a39aad0cfca241b8 (patch) | |
tree | 8cdf1d99dcf2546f9066d611679a1da9ff1e6399 | |
parent | a960a1e041fd2647b806f744ca0e409c30bd8d32 (diff) | |
download | ffmpeg-087b327287c657aa12108250a39aad0cfca241b8.tar.gz |
Include os_support.h only when needed
Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avformat.h | 2 | ||||
-rw-r--r-- | libavformat/os_support.c | 1 | ||||
-rw-r--r-- | libavformat/tcp.c | 1 | ||||
-rw-r--r-- | libavformat/udp.c | 1 |
4 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 5061b21c9a..900122c6f1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -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__ diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 13f82f76bb..8bde1b8df0 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -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 diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 1b9b4f8458..bea0fb9099 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -21,6 +21,7 @@ #include "avformat.h" #include <unistd.h> #include "network.h" +#include "os_support.h" #include <sys/time.h> typedef struct TCPContext { diff --git a/libavformat/udp.c b/libavformat/udp.c index 9b1e1128a1..d5a48be3fa 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -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 |