about summary refs log tree commit diff
path: root/signal/sigaddset.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal/sigaddset.c')
-rw-r--r--signal/sigaddset.c5
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;