return something if RETSIGTYPE is not void, in functions that are defined as
returning RETSIGTYPE.
#endif
/* Pointers needed from outside (but not declared in a header file). */
-extern int (*PyOS_InputHook)();
+extern int (*PyOS_InputHook)(void);
extern char *(*PyOS_ReadlineFunctionPointer)(char *);
onintr(int sig)
{
longjmp(jbuf, 1);
+#if RETSIGTYPE != void
+ return 0;
+#endif
}
{
size_t n;
char *p, *q;
- RETSIGTYPE (*old_inthandler)();
+ RETSIGTYPE (*old_inthandler)(int);
old_inthandler = signal(SIGINT, onintr);
if (setjmp(jbuf)) {
#ifdef HAVE_SIGRELSE