diff options
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index bbb077f..cf921a7 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -22,7 +22,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ -/* Signal module -- many thanks to Lance Ellinghouse */ +/* Signal module -- many thanks to Lance Ellinghaus */ #include "Python.h" #include "intrcheck.h" @@ -34,6 +34,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define SIG_ERR ((RETSIGTYPE (*)())-1) #endif +#ifndef NSIG +#define NSIG (_SIGMAX + 1) /* For QNX */ +#endif + + /* NOTES ON THE INTERACTION BETWEEN SIGNALS AND THREADS @@ -119,7 +124,6 @@ PySignal_Alarm(self, args) PyObject *args; { int t; - int rtn; if (!PyArg_Parse(args, "i", &t)) return (PyObject *)NULL; /* alarm() returns the number of seconds remaining */ @@ -218,7 +222,6 @@ void initsignal() { PyObject *m, *d, *x; - PyObject *b_dict; int i; #ifdef WITH_THREAD |