aboutsummaryrefslogtreecommitdiffhomepage
path: root/cbits
diff options
context:
space:
mode:
authorGravatar Erik de Castro Lopo <erikd@mega-nerd.com>2014-12-19 14:47:43 +1100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2014-12-19 09:43:00 +0100
commit3c4ced48d5d82bc3042fdd058e684e87e7036166 (patch)
tree0bf272be6e33d38a3fc9381116430ffe2b2cefd7 /cbits
parent757bf44bb4895fc561a2e5dd2f602168478741ec (diff)
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
Diffstat (limited to 'cbits')
-rw-r--r--cbits/HsUnix.c9
1 files changed, 1 insertions, 8 deletions
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: