mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-24 02:51:43 +01:00
Define _NSIG if it is not defined by the system
At least on macOS this macro is not defined.
This commit is contained in:
parent
44824aca3c
commit
06e8a1b29b
@ -36,6 +36,15 @@
|
|||||||
#define TCSASOFT 0
|
#define TCSASOFT 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _NSIG
|
||||||
|
#if defined(NSIG)
|
||||||
|
#define _NSIG NSIG
|
||||||
|
#else
|
||||||
|
/* The SIGRTMAX define might be set to a function such as sysconf(). */
|
||||||
|
#define _NSIG (SIGRTMAX + 1)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
static volatile sig_atomic_t signo[_NSIG];
|
static volatile sig_atomic_t signo[_NSIG];
|
||||||
|
|
||||||
static void handler(int);
|
static void handler(int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user