summaryrefslogtreecommitdiff
path: root/sysdeps/stub/sysconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/sysconf.c')
-rw-r--r--sysdeps/stub/sysconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/stub/sysconf.c b/sysdeps/stub/sysconf.c
index 1351b48fe0..43ad6d93a9 100644
--- a/sysdeps/stub/sysconf.c
+++ b/sysdeps/stub/sysconf.c
@@ -32,7 +32,7 @@ __sysconf (name)
switch (name)
{
default:
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
case _SC_TZNAME_MAX:
@@ -173,7 +173,7 @@ __sysconf (name)
break;
}
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return -1;
}