aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/stub/getrlimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/getrlimit.c')
-rw-r--r--sysdeps/stub/getrlimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/getrlimit.c b/sysdeps/stub/getrlimit.c
index a3f31448bc..9e41e076a5 100644
--- a/sysdeps/stub/getrlimit.c
+++ b/sysdeps/stub/getrlimit.c
@@ -24,7 +24,7 @@ Cambridge, MA 02139, USA. */
int
__getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
{
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return -1;
}
weak_alias (__getrlimit, getrlimit)