Improve defining NSIG when it isn't already defined
This commit is contained in:
parent
cddb7387c8
commit
62590f5a49
|
@ -78,9 +78,15 @@ void util_SignalHandler( int sig )
|
||||||
|
|
||||||
#if IS_UNIX
|
#if IS_UNIX
|
||||||
|
|
||||||
|
/* For the morbidly curious, here's a thread where a POSIX standards committee
|
||||||
|
wrings its hands about how to define NSIG: http://austingroupbugs.net/view.php?id=741#c1834 */
|
||||||
#ifndef NSIG
|
#ifndef NSIG
|
||||||
|
# ifdef SIGMAX
|
||||||
|
# define NSIG (SIGMAX+1)
|
||||||
|
# else
|
||||||
# define NSIG 32
|
# define NSIG 32
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void tw_psignal(int sig, const TCHAR *str)
|
void tw_psignal(int sig, const TCHAR *str)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue