[Mplayer-cvslog] CVS: main/libmpdemux network.h,1.13,1.14

Bertrand Baudet bertrand at mplayerhq.hu
Thu Aug 29 09:07:14 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv27010/libmpdemux

Modified Files:
	network.h 
Log Message:
inet_aton fallback support by Joey Parrish <joey at yunamusic.com>


Index: network.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- network.h	5 Jul 2002 02:35:19 -0000	1.13
+++ network.h	29 Aug 2002 07:07:12 -0000	1.14
@@ -52,4 +52,18 @@
 int http_send_request(URL_t *url);
 HTTP_header_t *http_read_response(int fd);
 
+/* 
+ * Joey Parrish <joey at 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




More information about the MPlayer-cvslog mailing list