mirror of git://git.musl-libc.org/musl
fix sigorset/sigandset: _NSIG/8 is the size in bytes
This commit is contained in:
parent
e00e07f664
commit
6bffcc2335
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue