about summary refs log tree commit diff
path: root/sysdeps/stub/getlogin_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/getlogin_r.c')
-rw-r--r--sysdeps/stub/getlogin_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/stub/getlogin_r.c b/sysdeps/stub/getlogin_r.c
index bf29c7c982..fa9bb75d41 100644
--- a/sysdeps/stub/getlogin_r.c
+++ b/sysdeps/stub/getlogin_r.c
@@ -28,7 +28,7 @@ getlogin_r (name, name_len)
      char *name;
      size_t name_len;
 {
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return errno;
 }