Skip to content

Commit

Permalink
Detect the max signal value that can be used using NSIG macro
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvossel committed Aug 20, 2013
1 parent 628ad91 commit 67f63be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/loop_poll.c
Expand Up @@ -29,7 +29,11 @@
#if defined(__DARWIN_NSIG)
#define QB_MAX_NUM_SIGNALS __DARWIN_NSIG
#else
#define QB_MAX_NUM_SIGNALS 30
#if defined(NSIG)
#define QB_MAX_NUM_SIGNALS NSIG - 1
#else
#define QB_MAX_NUM_SIGNALS 31
#endif
#endif

#include "loop_poll_int.h"
Expand Down

0 comments on commit 67f63be

Please sign in to comment.