From: Guido van Rossum Date: Tue, 11 Jun 1996 18:40:02 +0000 (+0000) Subject: Add a hack for Solaris threads (why not, there are zillions of X-Git-Tag: v1.4b1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e1beeac2e61e5b93afd89fc7798599dbf1618d2;p=python Add a hack for Solaris threads (why not, there are zillions of hacks for Windows and DOS here already :-( ). --- diff --git a/Include/allobjects.h b/Include/allobjects.h index 03b6363a11..641ffeaeab 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