[Python-checkins] python/dist/src/Modules socketmodule.c,1.228,1.229

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年7月02日 07:40:46 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv25381/Modules
Modified Files:
	socketmodule.c 
Log Message:
Mac OS X Jaguar (developer preview) seems to have a working getaddrinfo().
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.228
retrieving revision 1.229
diff -C2 -d -r1.228 -r1.229
*** socketmodule.c	13 Jun 2002 20:32:52 -0000	1.228
--- socketmodule.c	2 Jul 2002 14:40:42 -0000	1.229
***************
*** 220,226 ****
--- 220,231 ----
 gets ever fixed, perhaps checking for sys/version.h would be
 appropriate, which is 10/0 on the system with the bug. */
+ #ifndef HAVE_GETNAMEINFO
+ /* This bug seems to be fixed in Jaguar. Ths easiest way I could
+ Find to check for Jaguar is that it has getnameinfo(), which
+ older releases don't have */
 #undef HAVE_GETADDRINFO
 /* avoid clashes with the C library definition of the symbol. */
 #define getaddrinfo fake_getaddrinfo
+ #endif
 #endif
 

AltStyle によって変換されたページ (->オリジナル) /