diff options
Diffstat (limited to 'signal/sigaddset.c')
-rw-r--r-- | signal/sigaddset.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/signal/sigaddset.c b/signal/sigaddset.c index d310890ec3..7238df4738 100644 --- a/signal/sigaddset.c +++ b/signal/sigaddset.c @@ -17,13 +17,14 @@ #include <errno.h> #include <signal.h> -#include <sigsetops.h> +#include <internal-signals.h> /* Add SIGNO to SET. */ int sigaddset (sigset_t *set, int signo) { - if (set == NULL || signo <= 0 || signo >= NSIG) + if (set == NULL || signo <= 0 || signo >= NSIG + || __is_internal_signal (signo)) { __set_errno (EINVAL); return -1; |