diff options
author | Guido van Rossum <guido@python.org> | 1996-06-11 18:40:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-11 18:40:02 (GMT) |
commit | 2e1beeac2e61e5b93afd89fc7798599dbf1618d2 (patch) | |
tree | b167fb752dca16bebf2cac677bf8ea6da4261b35 /Include | |
parent | 8bac546e1150f213d27e5f0e0ecfaf0c826be83f (diff) | |
download | cpython-2e1beeac2e61e5b93afd89fc7798599dbf1618d2.zip cpython-2e1beeac2e61e5b93afd89fc7798599dbf1618d2.tar.gz cpython-2e1beeac2e61e5b93afd89fc7798599dbf1618d2.tar.bz2 |
Add a hack for Solaris threads (why not, there are zillions of
hacks for Windows and DOS here already :-( ).
Diffstat (limited to 'Include')
-rw-r--r-- | Include/allobjects.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/allobjects.h b/Include/allobjects.h index 03b6363..641ffea 100644 --- a/Include/allobjects.h +++ b/Include/allobjects.h @@ -41,6 +41,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #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> |