[project @ 2003-11-02 00:06:23 by panne]
authorpanne <unknown>
Sun, 2 Nov 2003 00:06:23 +0000 (00:06 +0000)
committerpanne <unknown>
Sun, 2 Nov 2003 00:06:23 +0000 (00:06 +0000)
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

index bc88bad..f9c6e1d 100644 (file)
@@ -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
  *
 #endif
 #ifdef HAVE_SIGNAL_H
 #include <signal.h>
+/* Ultra-ugly: OpenBSD uses a broken macro for sigfillset (missing cast) */
+#if __OpenBSD__
+#undef sigfillset
+#endif
 #endif
 #ifdef HAVE_ERRNO_H
 #include <errno.h>