From 3c4ced48d5d82bc3042fdd058e684e87e7036166 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Fri, 19 Dec 2014 14:47:43 +1100 Subject: Fix SIGINFO and SIGWINCH. It seems these two signals have not been working since at least 2009. Detection of these signals seems to have never been added to the configure.ac script and the code guarded by #ifdef then bit-rotted (the idiom used to handle these signals seems to have been abandoned for something simpler/better in 2009). This fix simply handles these signals the same way the other signals are handled in System/Posix/Signals.hsc. Closes #30 and #31 --- cbits/HsUnix.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cbits') diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index db97de2..60f19bc 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -21,14 +21,7 @@ void *__hsunix_rtldNext (void) {return RTLD_NEXT;} #endif #ifdef HAVE_RTLDDEFAULT -void *__hsunix_rtldDefault (void) {return RTLD_DEFAULT;} -#endif - -#ifdef SIGINFO -int __hsunix_SIGINFO(void) { return SIGINFO; } -#endif -#ifdef SIGWINCH -int __hsunix_SIGWINCH(void) { return SIGWINCH; } +void *__hsunix_rtldDefault (void) {return RTLD_DEFAULT;} #endif // lstat is a macro on some platforms, so we need a wrapper: -- cgit v1.2.3