[Python-checkins] python/dist/src/Modules socketmodule.c,1.200.6.8,1.200.6.9

mwh@users.sourceforge.net mwh@users.sourceforge.net
Fri, 27 Sep 2002 01:51:22 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv15941

Modified Files:
      Tag: release22-maint
	socketmodule.c 
Log Message:
Backport Jack's fix for Jaguar.



Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.200.6.8
retrieving revision 1.200.6.9
diff -C2 -d -r1.200.6.8 -r1.200.6.9
*** socketmodule.c	9 Aug 2002 03:38:07 -0000	1.200.6.8
--- socketmodule.c	27 Sep 2002 08:51:20 -0000	1.200.6.9
***************
*** 223,229 ****
--- 223,234 ----
     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