fix sigorset/sigandset: _NSIG/8 is the size in bytes

This commit is contained in:
rofl0r 2012-12-06 22:48:46 +01:00
parent e00e07f664
commit 6bffcc2335
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#define _GNU_SOURCE #define _GNU_SOURCE
#include <signal.h> #include <signal.h>
#define SST_SIZE (_NSIG/8) #define SST_SIZE (_NSIG/8/sizeof(long))
int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right) int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right)
{ {

View File

@ -1,7 +1,7 @@
#define _GNU_SOURCE #define _GNU_SOURCE
#include <signal.h> #include <signal.h>
#define SST_SIZE (_NSIG/8) #define SST_SIZE (_NSIG/8/sizeof(long))
int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right) int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right)
{ {