summaryrefslogtreecommitdiff
path: root/libavformat/tcp.c
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2007-01-18 17:22:30 +0000
committerFrançois Revol <revol@free.fr>2007-01-18 17:22:30 +0000
commite9d511dc7eb09aeac21efa74fb699b9be3d37fde (patch)
treee80d4bde577baa7eab3e60145d286112fb3aa4a6 /libavformat/tcp.c
parent453cd7a49676e42f804d824d216da2778673d28e (diff)
The long awaited BeOS cleanup, phase 1
Originally committed as revision 7581 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r--libavformat/tcp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index 93755c4978..9544773111 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -23,14 +23,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#if defined(__BEOS__) || defined(__INNOTEK_LIBC__)
-typedef int socklen_t;
-#endif
-#ifndef __BEOS__
# include <arpa/inet.h>
-#else
-# include "barpainet.h"
-#endif
#include <netdb.h>
#include <sys/time.h>
#include <fcntl.h>
@@ -127,7 +120,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
ret = AVERROR_IO;
fail1:
if (fd >= 0)
- close(fd);
+ closesocket(fd);
av_free(s);
return ret;
}
@@ -213,11 +206,7 @@ static int tcp_write(URLContext *h, uint8_t *buf, int size)
static int tcp_close(URLContext *h)
{
TCPContext *s = h->priv_data;
-#ifdef CONFIG_BEOS_NETSERVER
closesocket(s->fd);
-#else
- close(s->fd);
-#endif
av_free(s);
return 0;
}