diff --git a/src/signal/sigandset.c b/src/signal/sigandset.c index f62c7fec1ae28bdb7548877e6d527f7f5533cc4f..78f9600d31433ffcfbf37af44112aec620075214 100644 --- a/src/signal/sigandset.c +++ b/src/signal/sigandset.c @@ -2,7 +2,7 @@ #include #include -#define SST_SIZE (sizeof(sigset_t) / sizeof(long)) +#define SST_SIZE (_NSIG/8) int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right) { diff --git a/src/signal/sigorset.c b/src/signal/sigorset.c index 232075b1c281504c792264aa8fdc541f50a19507..eb5feab465fe5e5c08304520e217979985ced4c1 100644 --- a/src/signal/sigorset.c +++ b/src/signal/sigorset.c @@ -2,7 +2,7 @@ #include #include -#define SST_SIZE (sizeof(sigset_t) / sizeof(long)) +#define SST_SIZE (_NSIG/8) int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right) {