Mercurial > cpython-lru_cache-weakref
diff Include/allobjects.h @ 3668:ab92480fa4ec legacy-trunk
Add a hack for Solaris threads (why not, there are zillions of
hacks for Windows and DOS here already :-( ).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 11 Jun 1996 18:40:02 +0000 |
| parents | 4ec1cac342dd |
| children | 09beba9409dd |
line wrap: on
line diff
--- a/Include/allobjects.h Tue Jun 11 18:38:48 1996 +0000 +++ b/Include/allobjects.h Tue Jun 11 18:40:02 1996 +0000 @@ -41,6 +41,12 @@ #define UsingSharedLibs #endif +#ifdef WITH_THREAD +/* This turns errno in a thread-safe function on Solaris. + Wonder what it will break though :-( */ +#define _REENTRANT +#endif + #include <stdio.h> #include <string.h> #include <errno.h>
