From b15c4329b10e422d85673e1708ce20bb0116598e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 28 Apr 2017 12:12:06 +0000 Subject: Change SKALIBS_NSIG to SKALIBS_DEFAULT_NSIG and NSIG to SKALIBS_NSIG to accommodate OpenBSD snowflakiness --- src/include/skalibs/nsig.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/include') 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 -#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 -- cgit v1.2.3