summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/nsig.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/include/skalibs/nsig.h b/src/include/skalibs/nsig.h
index 040be2c..3b3fb32 100644
--- a/src/include/skalibs/nsig.h
+++ b/src/include/skalibs/nsig.h
@@ -9,10 +9,19 @@
#include <signal.h>
-#define SKALIBS_NSIG 65
+#define SKALIBS_DEFAULT_NSIG 65
#ifndef NSIG
-# define NSIG SKALIBS_NSIG
+# define NSIG SKALIBS_DEFAULT_NSIG
+#endif
+
+
+ /* OpenBSD is a fucking snowflake */
+
+#ifdef __OpenBSD__
+#define SKALIBS_NSIG (NSIG-1)
+#else
+#define SKALIBS_NSIG NSIG
#endif
#endif