From fcf4aa473708347cb25241cd6aa6547a05c51920 Mon Sep 17 00:00:00 2001 From: panne Date: Sun, 2 Nov 2003 00:06:23 +0000 Subject: [PATCH] [project @ 2003-11-02 00:06:23 by panne] Added an extremely ugly workaround for the broken sigfillset macro on OpenBSD, which misses a cast. Is there a better way? Probably merge to STABLE. --- include/HsBase.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/HsBase.h b/include/HsBase.h index bc88bad..f9c6e1d 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: HsBase.h,v 1.34 2003/10/30 18:51:26 sof Exp $ + * $Id: HsBase.h,v 1.35 2003/11/02 00:06:23 panne Exp $ * * (c) The University of Glasgow 2001-2002 * @@ -34,6 +34,10 @@ #endif #ifdef HAVE_SIGNAL_H #include +/* Ultra-ugly: OpenBSD uses a broken macro for sigfillset (missing cast) */ +#if __OpenBSD__ +#undef sigfillset +#endif #endif #ifdef HAVE_ERRNO_H #include -- 1.7.10.4