summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/thread_pthread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 09a0887bd4..fe9dde6f52 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -144,7 +144,10 @@ typedef struct {
* Initialization.
*/
-#ifdef _HAVE_BSDI
+/* On FreeBSD6, pthread_kill() doesn't work on the main thread before
+ the creation of the first thread */
+#if defined(_HAVE_BSDI) \
+ || (defined(__FreeBSD__) && __FreeBSD_version < 700000)
static
void _noop(void)
{