Skip to content

Commit

Permalink
i#58 MacOS: avoid zero-sized kernel_sigset_t on Mac
Browse files Browse the repository at this point in the history
SVN-Revision: 2457
  • Loading branch information
derekbruening committed Jan 9, 2014
1 parent cfef388 commit ce12b14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/unix/os_exports.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ bool unhook_vsyscall(void);
# define _NSIG_BPW 32
#endif

#define _NSIG_WORDS (MAX_SIGNUM / _NSIG_BPW)
#ifdef LINUX
# define _NSIG_WORDS (MAX_SIGNUM / _NSIG_BPW)
#else
# define _NSIG_WORDS 1 /* avoid 0 */
#endif

/* kernel's sigset_t packs info into bits, while glibc's uses a short for
* each (-> 8 bytes vs. 128 bytes)
Expand Down

0 comments on commit ce12b14

Please sign in to comment.