[Python-checkins] python/dist/src/Python thread_pthread.h,2.36.8.1,2.36.8.2

loewis@users.sourceforge.net loewis@users.sourceforge.net
Fri, 04 Oct 2002 03:16:29 -0700


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

Modified Files:
      Tag: release22-maint
	thread_pthread.h 
Log Message:
Patch #618347: Work around Solaris pthread.h bug.


Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.36.8.1
retrieving revision 2.36.8.2
diff -C2 -d -r2.36.8.1 -r2.36.8.2
*** thread_pthread.h	23 Feb 2002 08:43:03 -0000	2.36.8.1
--- thread_pthread.h	4 Oct 2002 10:16:27 -0000	2.36.8.2
***************
*** 4,12 ****
  #include <stdlib.h>
  #include <string.h>
! #ifdef __APPLE__
  #define destructor xxdestructor
  #endif
  #include <pthread.h>
! #ifdef __APPLE__
  #undef destructor
  #endif
--- 4,12 ----
  #include <stdlib.h>
  #include <string.h>
! #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
  #define destructor xxdestructor
  #endif
  #include <pthread.h>
! #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
  #undef destructor
  #endif