]> granicus.if.org Git - python/commitdiff
Donn Cave <donn@u.washington.edu>:
authorFred Drake <fdrake@acm.org>
Fri, 6 Oct 2000 15:48:38 +0000 (15:48 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 6 Oct 2000 15:48:38 +0000 (15:48 +0000)
Do not assume that all platforms using a MetroWorks compiler can use
POSIX threads; the assumption breaks on BeOS.  This fix only helps
for BeOS.

This closes SourceForge patch #101772.

Python/thread.c

index f366a71ec76ab317c36e6bc6702d8743a8ede956..b5d99ef4bd6860a926037026ac84bea3311aa52b 100644 (file)
@@ -58,7 +58,7 @@ extern char *getenv(const char *);
 #define SUN_LWP
 #endif
 
-#ifdef __MWERKS__
+#if defined(__MWERKS__) && !defined(__BEOS__)
 #define _POSIX_THREADS
 #endif