summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-29 07:07:12 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-29 07:07:12 +0000
commita7d15a362bdf63558a5e2359dc9915439350267c (patch)
tree59d5739a885050ee4ac9ba3bda21aeb7a3e1fc80 /libmpdemux
parentd4f7c077431daf10f1789f5e0fc96aaa0b973960 (diff)
downloadmpv-a7d15a362bdf63558a5e2359dc9915439350267c.tar.bz2
mpv-a7d15a362bdf63558a5e2359dc9915439350267c.tar.xz
inet_aton fallback support by Joey Parrish <joey@yunamusic.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7136 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/network.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libmpdemux/network.h b/libmpdemux/network.h
index 3260860840..f3a60b6f04 100644
--- a/libmpdemux/network.h
+++ b/libmpdemux/network.h
@@ -52,4 +52,18 @@ int connect2Server(char *host, int port);
int http_send_request(URL_t *url);
HTTP_header_t *http_read_response(int fd);
+/*
+ * 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