]> granicus.if.org Git - python/commitdiff
faulthandler: add missing include, pthread.h, for FreeBSD 6
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Jun 2011 21:28:02 +0000 (23:28 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Jun 2011 21:28:02 +0000 (23:28 +0200)
Modules/faulthandler.c

index 46c2c423252c8185066b4abc8e05c4348680f5d2..1450d9463798870f8149b67cd82ace1170f7d96f 100644 (file)
@@ -4,6 +4,10 @@
 #include <object.h>
 #include <frameobject.h>
 #include <signal.h>
+#if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
+#include <pthread.h>
+#endif
+
 
 /* Allocate at maximum 100 MB of the stack to raise the stack overflow */
 #define STACK_OVERFLOW_MAX_SIZE (100*1024*1024)