[Python-checkins] cpython: faulthandler: add missing include, pthread.h, for FreeBSD 6

victor.stinner python-checkins at python.org
Wed Jun 29 23:28:15 CEST 2011


http://hg.python.org/cpython/rev/9aa3fcab76f0
changeset:   71084:9aa3fcab76f0
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Jun 29 23:28:02 2011 +0200
summary:
  faulthandler: add missing include, pthread.h, for FreeBSD 6

files:
  Modules/faulthandler.c |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list