diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-28 12:12:06 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-28 12:12:06 +0000 |
commit | b15c4329b10e422d85673e1708ce20bb0116598e (patch) | |
tree | ed61c1856ddc3e473f0b5d608bfad93299f461a6 /src/include | |
parent | 94caf2cee5c03e037c465648eac8cb1dd32c7c73 (diff) | |
download | skalibs-b15c4329b10e422d85673e1708ce20bb0116598e.tar.xz |
Change SKALIBS_NSIG to SKALIBS_DEFAULT_NSIG and NSIG to SKALIBS_NSIG to accommodate OpenBSD snowflakiness
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/nsig.h | 13 |
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 |