From 2e1beeac2e61e5b93afd89fc7798599dbf1618d2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 11 Jun 1996 18:40:02 +0000 Subject: Add a hack for Solaris threads (why not, there are zillions of hacks for Windows and DOS here already :-( ). --- Include/allobjects.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include #include -- cgit v0.12