diff options
-rw-r--r-- | pthread_stop_world.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 9e98b6ed..993db7d9 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -75,7 +75,9 @@ GC_INLINE void GC_usleep(unsigned us) #ifdef DEBUG_THREADS # ifndef NSIG -# if defined(MAXSIG) +# ifdef CPPCHECK +# define NSIG 32 +# elif defined(MAXSIG) # define NSIG (MAXSIG+1) # elif defined(_NSIG) # define NSIG _NSIG @@ -84,7 +86,7 @@ GC_INLINE void GC_usleep(unsigned us) # else # error define NSIG # endif -# endif /* NSIG */ +# endif /* !NSIG */ void GC_print_sig_mask(void) { |