[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.157,1.158

Martin v. L?wis loewis@users.sourceforge.net
Mon, 30 Jul 2001 09:52:58 -0700


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

Modified Files:
	socketmodule.c 
Log Message:
Temporarily work around bug #445928: Force usage of getaddrinfo emulation
code on Darwin, since the C library version of that seems to be broken.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -C2 -d -r1.157 -r1.158
*** socketmodule.c	2001/07/24 11:03:34	1.157
--- socketmodule.c	2001/07/30 16:52:55	1.158
***************
*** 220,227 ****
  
  /* I know this is a bad practice, but it is the easiest... */
! #ifndef HAVE_GETADDRINFO
  #include "getaddrinfo.c"
  #endif
! #ifndef HAVE_GETNAMEINFO
  #include "getnameinfo.c"
  #endif
--- 220,231 ----
  
  /* I know this is a bad practice, but it is the easiest... */
! /* XXX Temporarily work around bug #445928:
!    getaddrinfo on Darwin seems to return an empty result list, with
!    no error, even if host lookup ought to work fine. So use the
!    emulation code for now. */
! #if !defined(HAVE_GETADDRINFO) || defined(__APPLE__)
  #include "getaddrinfo.c"
  #endif
! #if !defined(HAVE_GETNAMEINFO) || defined(__APPLE__)
  #include "getnameinfo.c"
  #endif