summaryrefslogtreecommitdiff
path: root/libc/signal/sigaddset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/signal/sigaddset.c')
-rw-r--r--libc/signal/sigaddset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/signal/sigaddset.c b/libc/signal/sigaddset.c
index ec1c96e9b..269f7d367 100644
--- a/libc/signal/sigaddset.c
+++ b/libc/signal/sigaddset.c
@@ -25,7 +25,7 @@
int sigaddset ( sigset_t *set, int signo)
{
if (set == NULL || signo <= 0 || signo >= NSIG) {
- errno = EINVAL;
+ __set_errno(EINVAL);
return -1;
}