Mercurial > libavformat.hg
comparison os_support.c @ 2811:cbc58d02f912 libavformat
Fix compilation of os_support.c for MinGW with --disable-network
Patch by Tom Harper <d.thomas.harper <at> gmail.com>
author | ramiro |
---|---|
date | Sun, 09 Dec 2007 14:39:01 +0000 |
parents | 13b65f62e3a6 |
children | 5e3ba0ab8782 |
comparison
equal
deleted
inserted
replaced
2810:e106e4b43718 | 2811:cbc58d02f912 |
---|---|
23 #include "avformat.h" | 23 #include "avformat.h" |
24 #include <unistd.h> | 24 #include <unistd.h> |
25 #include <fcntl.h> | 25 #include <fcntl.h> |
26 #include "os_support.h" | 26 #include "os_support.h" |
27 | 27 |
28 #ifdef CONFIG_NETWORK | |
28 #ifndef HAVE_SYS_POLL_H | 29 #ifndef HAVE_SYS_POLL_H |
29 #ifdef HAVE_WINSOCK2_H | 30 #ifdef HAVE_WINSOCK2_H |
30 #include <winsock2.h> | 31 #include <winsock2.h> |
31 #else | 32 #else |
32 #include <sys/select.h> | 33 #include <sys/select.h> |
33 #endif | 34 #endif |
34 #endif | 35 #endif |
35 | 36 |
36 #ifdef CONFIG_NETWORK | |
37 #include "network.h" | 37 #include "network.h" |
38 | 38 |
39 #if !defined(HAVE_INET_ATON) | 39 #if !defined(HAVE_INET_ATON) |
40 #include <stdlib.h> | 40 #include <stdlib.h> |
41 #include <strings.h> | 41 #include <strings.h> |