changeset 182:82fea3fec65b libavformat

OSX and BeOS networking fix (socklen_t)
author mmu_man
date Thu, 24 Jul 2003 13:30:27 +0000
parents 20cd73ef6ead
children b3b056122bd8
files barpainet.h rtsp.c tcp.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/barpainet.h	Thu Jul 24 12:18:46 2003 +0000
+++ b/barpainet.h	Thu Jul 24 13:30:27 2003 +0000
@@ -16,6 +16,8 @@
     struct in_addr imr_interface;  /* local IP address of interface */
 };
 
+#include <netdb.h>
+
 #else
 # include <arpa/inet.h>
 #endif
--- a/rtsp.c	Thu Jul 24 12:18:46 2003 +0000
+++ b/rtsp.c	Thu Jul 24 13:30:27 2003 +0000
@@ -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>
--- a/tcp.c	Thu Jul 24 12:18:46 2003 +0000
+++ b/tcp.c	Thu Jul 24 13:30:27 2003 +0000
@@ -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