summary refs log tree commit diff
path: root/sysdeps/stub/xstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/xstat.c')
-rw-r--r--sysdeps/stub/xstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/stub/xstat.c b/sysdeps/stub/xstat.c
index ad67aa9fec..a487062fdf 100644
--- a/sysdeps/stub/xstat.c
+++ b/sysdeps/stub/xstat.c
@@ -26,11 +26,11 @@ __xstat (int vers, const char *file, struct stat *buf)
 {
   if (vers != _STAT_VER || file == NULL || buf == NULL)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }
 
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 stub_warning (stat)