diff options
-rw-r--r-- | libavformat/barpainet.h | 2 | ||||
-rw-r--r-- | libavformat/rtsp.c | 1 | ||||
-rw-r--r-- | libavformat/tcp.c | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/barpainet.h b/libavformat/barpainet.h index 461403b3fa..665fe2ab14 100644 --- a/libavformat/barpainet.h +++ b/libavformat/barpainet.h @@ -16,6 +16,8 @@ struct ip_mreq { struct in_addr imr_interface; /* local IP address of interface */ }; +#include <netdb.h> + #else # include <arpa/inet.h> #endif diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 98225cdccd..5b2a207195 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -18,6 +18,7 @@ */ #include "avformat.h" +#include <unistd.h> /* for select() prototype */ #include <sys/time.h> #include <netinet/in.h> #include <sys/socket.h> diff --git a/libavformat/tcp.c b/libavformat/tcp.c index d4b81c88e9..ee61afafe9 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -22,6 +22,9 @@ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> +#if defined(__APPLE__) || defined(__BEOS__) +typedef int socklen_t; +#endif #ifndef __BEOS__ # include <arpa/inet.h> #else |