summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c11
-rw-r--r--Python/pythonrun.c4
-rw-r--r--Python/thread.c6
3 files changed, 0 insertions, 21 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index f2d79e7..cf5e9ec 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -806,17 +806,6 @@ eval_frame(PyFrameObject *f)
goto on_error;
}
}
-#if !defined(HAVE_SIGNAL_H)
- /* If we have true signals, the signal handler
- will call Py_AddPendingCall() so we don't
- have to call PyErr_CheckSignals(). On the
- Mac and DOS, alas, we have to call it. */
- if (PyErr_CheckSignals()) {
- why = WHY_EXCEPTION;
- goto on_error;
- }
-#endif
-
#ifdef WITH_THREAD
if (interpreter_lock) {
/* Give another thread a chance */
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index eedb562..224b3c8 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -13,9 +13,7 @@
#include "eval.h"
#include "marshal.h"
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
#ifdef HAVE_LANGINFO_H
#include <locale.h>
@@ -1563,7 +1561,6 @@ Py_Exit(int sts)
static void
initsigs(void)
{
-#ifdef HAVE_SIGNAL_H
#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN);
#endif
@@ -1573,7 +1570,6 @@ initsigs(void)
#ifdef SIGXFSZ
signal(SIGXFSZ, SIG_IGN);
#endif
-#endif /* HAVE_SIGNAL_H */
PyOS_InitInterrupts(); /* May imply initsignal() */
}
diff --git a/Python/thread.c b/Python/thread.c
index 016ccba..8bc958f 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -11,13 +11,7 @@
#include <stdio.h>
#endif
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#else
-#ifdef Py_DEBUG
-extern char *getenv(const char *);
-#endif
-#endif
#ifdef __sgi
#ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */