Ticket #70: paul-2.7.5.diff
File paul-2.7.5.diff, 2.4 KB (added by , 11 years ago) |
---|
-
Python/thread_pthread.h
207 207 if (status != 0) 208 208 return -1; 209 209 210 #ifndef __OS2__ 210 211 pthread_detach(th); 212 #endif 211 213 212 214 #if SIZEOF_PTHREAD_T <= SIZEOF_LONG 213 215 return (long) th; -
Python/thread.c
31 31 32 32 #include "pythread.h" 33 33 34 #ifdef __OS2__ 35 #define OS2_THREADS 1 36 #undef _POSIX_THREADS 37 #endif 38 34 39 #ifndef _POSIX_THREADS 35 40 36 41 #ifdef __sgi -
Python/random.c
95 95 #endif /* MS_WINDOWS */ 96 96 97 97 98 #if def __VMS98 #if defined(__VMS) || defined(__OS2__) 99 99 /* Use openssl random routine */ 100 100 #include <openssl/rand.h> 101 101 static int … … 116 116 #endif /* __VMS */ 117 117 118 118 119 #if !defined(MS_WINDOWS) && !defined(__VMS) 119 #if !defined(MS_WINDOWS) && !defined(__VMS) && !defined(__OS2__) 120 120 121 121 /* Read size bytes from /dev/urandom into buffer. 122 122 Call Py_FatalError() on error. */ … … 243 243 #ifdef MS_WINDOWS 244 244 return win32_urandom((unsigned char *)buffer, size, 1); 245 245 #else 246 # ifdef __VMS246 #if defined(__VMS) || defined(__OS2__) 247 247 return vms_urandom((unsigned char *)buffer, size, 1); 248 248 # else 249 249 return dev_urandom_python((char*)buffer, size); … … 302 302 #ifdef MS_WINDOWS 303 303 (void)win32_urandom((unsigned char *)secret, secret_size, 0); 304 304 #else /* #ifdef MS_WINDOWS */ 305 # ifdef __VMS305 #if defined(__VMS) || defined(__OS2__) 306 306 vms_urandom((unsigned char *)secret, secret_size, 0); 307 307 # else 308 308 dev_urandom_noraise((char*)secret, secret_size); -
Lib/ctypes/__init__.py
137 137 if WINFUNCTYPE.__doc__: 138 138 WINFUNCTYPE.__doc__ = CFUNCTYPE.__doc__.replace("CFUNCTYPE", "WINFUNCTYPE") 139 139 140 elif _os.name == "posix":140 elif _os.name in ("posix", "os2"): 141 141 from _ctypes import dlopen as _dlopen 142 142 143 143 from _ctypes import sizeof, byref, addressof, alignment, resize