OSX and BeOS networking fix (socklen_t)
authorFrançois Revol <revol@free.fr>
Thu, 24 Jul 2003 13:30:27 +0000 (13:30 +0000)
committerFrançois Revol <revol@free.fr>
Thu, 24 Jul 2003 13:30:27 +0000 (13:30 +0000)
Originally committed as revision 2077 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/barpainet.h
libavformat/rtsp.c
libavformat/tcp.c

index 461403b3fa4d8073a8318f540aaeacaa5163ed94..665fe2ab1476790240fd2932ba6a4003d0b5ca93 100644 (file)
@@ -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
index 98225cdccd5236ef2e8cb24d7dc9bda9fb4f1b18..5b2a20719583fc0180a19c3b730ea8c0e3a9f9c1 100644 (file)
@@ -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>
index d4b81c88e99310d3ac97434d742b26d46724b5f0..ee61afafe9817829da12f4f2317aecfbda755ea3 100644 (file)
@@ -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