diff options
author | François Revol <revol@free.fr> | 2007-01-18 17:22:30 +0000 |
---|---|---|
committer | François Revol <revol@free.fr> | 2007-01-18 17:22:30 +0000 |
commit | e9d511dc7eb09aeac21efa74fb699b9be3d37fde (patch) | |
tree | e80d4bde577baa7eab3e60145d286112fb3aa4a6 /libavformat/tcp.c | |
parent | 453cd7a49676e42f804d824d216da2778673d28e (diff) | |
download | ffmpeg-e9d511dc7eb09aeac21efa74fb699b9be3d37fde.tar.gz |
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.c | 13 |
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; } |