summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-09 16:21:42 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-09 16:21:42 +0000
commit0884192c18cfef6e2a7c0be0e8b55a592ff4748d (patch)
tree6cbddd8139cce9769a1484ed84a11a465fee82a2 /libmpdemux
parent44aeed4643aca71e93417e5805e0716623b5557e (diff)
downloadmpv-0884192c18cfef6e2a7c0be0e8b55a592ff4748d.tar.bz2
mpv-0884192c18cfef6e2a7c0be0e8b55a592ff4748d.tar.xz
removed some wrappers, now the configure checks for inet_pton. patch by Joey Parrish <joey@nicewarrior.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9891 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/network.c4
-rw-r--r--libmpdemux/network.h14
2 files changed, 4 insertions, 14 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index ed80d65a98..3a9eaad478 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -888,7 +888,11 @@ rtp_open_socket( URL_t *url ) {
}
memcpy( (void*)&server_address.sin_addr.s_addr, (void*)hp->h_addr, hp->h_length );
} else {
+#ifdef USE_ATON
+ inet_aton(url->hostname, &server_address.sin_addr);
+#else
inet_pton(AF_INET, url->hostname, &server_address.sin_addr);
+#endif
}
server_address.sin_family=AF_INET;
server_address.sin_port=htons(url->port);
diff --git a/libmpdemux/network.h b/libmpdemux/network.h
index 7ab436d7ab..e83b15c0ab 100644
--- a/libmpdemux/network.h
+++ b/libmpdemux/network.h
@@ -54,18 +54,4 @@ HTTP_header_t *http_read_response(int fd);
int http_authenticate(HTTP_header_t *http_hdr, URL_t *url, int *auth_retry);
-/*
- * Joey Parrish <joey@yunamusic.com>:
- *
- * This define is to allow systems without inet_pton() to fallback on
- * inet_aton(). The difference between the two is that inet_aton() is
- * strictly for IPv4 networking, while inet_pton() is for IPv4 and IPv6
- * both. Slightly limited network functionality seems better than no
- * network functionality to me, and as all systems (Cygwin) start to
- * implement inet_pton(), configure will decide not to use this code.
- */
-#ifdef USE_ATON
-# define inet_pton(a, b, c) inet_aton(b, c)
-#endif
-
#endif