[Python-checkins] python/dist/src/Modules socketmodule.c,1.266,1.267

jvr@users.sourceforge.net jvr@users.sourceforge.net
Fri, 09 May 2003 01:12:04 -0700


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

Modified Files:
	socketmodule.c 
Log Message:
Yet another addition to [731644]: only use the lock if thread-support
is enabled.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.266
retrieving revision 1.267
diff -C2 -d -r1.266 -r1.267
*** socketmodule.c	9 May 2003 08:03:44 -0000	1.266
--- socketmodule.c	9 May 2003 08:12:00 -0000	1.267
***************
*** 143,148 ****
  /* On systems on which getaddrinfo() is believed to not be thread-safe,
     (this includes the getaddrinfo emulation) protect access with a lock. */
! #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
!     defined(__NetBSD__) || !defined(HAVE_GETADDRINFO)
  #define USE_GETADDRINFO_LOCK
  #endif
--- 143,148 ----
  /* On systems on which getaddrinfo() is believed to not be thread-safe,
     (this includes the getaddrinfo emulation) protect access with a lock. */
! #if defined(WITH_THREAD) && (defined(__APPLE__) || defined(__FreeBSD__) || \
!     defined(__OpenBSD__) || defined(__NetBSD__) || !defined(HAVE_GETADDRINFO))
  #define USE_GETADDRINFO_LOCK
  #endif