diff options
Diffstat (limited to 'src/LYSignal.h')
-rw-r--r-- | src/LYSignal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LYSignal.h b/src/LYSignal.h index d8b1d106..e0d5ec0a 100644 --- a/src/LYSignal.h +++ b/src/LYSignal.h @@ -12,4 +12,12 @@ extern void VMSsignal PARAMS((int sig, void (*func)())); #define signal(a,b) VMSsignal(a,b) /* use LYCurses.c routines for interrupts */ #endif /* VMS */ +#if HAVE_SIGACTION +typedef void LYSigHandlerFunc_t PARAMS((int)); +/* implementation in LYUtils.c */ +extern void LYExtSignal PARAMS((int sig, LYSigHandlerFunc_t * handler)); +#else +#define LYExtSignal(sig,h) signal(sig, h) +#endif + #endif /* LYSIGNAL_H */ |