about summary refs log tree commit diff
path: root/sysdeps/stub/xmknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/xmknod.c')
-rw-r--r--sysdeps/stub/xmknod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/stub/xmknod.c b/sysdeps/stub/xmknod.c
index 6d365cbe0c..48d8b4f113 100644
--- a/sysdeps/stub/xmknod.c
+++ b/sysdeps/stub/xmknod.c
@@ -28,11 +28,11 @@ __xmknod (int vers, const char *path, mode_t mode, dev_t *dev)
 {
   if (vers != _MKNOD_VER)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }
 
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 stub_warning (__xmknod)