summaryrefslogtreecommitdiffstats
path: root/libmpdemux/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/network.h')
-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