]> granicus.if.org Git - python/commitdiff
Add a hack for Solaris threads (why not, there are zillions of
authorGuido van Rossum <guido@python.org>
Tue, 11 Jun 1996 18:40:02 +0000 (18:40 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 11 Jun 1996 18:40:02 +0000 (18:40 +0000)
hacks for Windows and DOS here already :-( ).

Include/allobjects.h

index 03b6363a11000abd0d7caf7faad315fe3f836ec0..641ffeaeab4a9037eab0d2ea81cbf1bacf23f543 100644 (file)
@@ -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>