Commit 8bcfb8a5 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Fixed symbol search for defining NSIG. It now also checks _NSIG

which some C libs define (e.g. glibc).

Added a fallback default value for NSIG which hopefully provides
enough room for signal slots.
parent 1e7205a6
...@@ -35,11 +35,15 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ...@@ -35,11 +35,15 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#endif #endif
#ifndef NSIG #ifndef NSIG
#ifdef _SIGMAX # if defined(_NSIG)
#define NSIG (_SIGMAX + 1) /* For QNX */ # define NSIG _NSIG /* For BSD/SysV */
#else # elif defined(_SIGMAX)
#define NSIG (SIGMAX + 1) /* for djgpp */ # define NSIG (_SIGMAX + 1) /* For QNX */
#endif # elif defined(SIGMAX)
# define NSIG (SIGMAX + 1) /* For djgpp */
# else
# define NSIG 64 /* Use a reasonable default value */
# endif
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment