summaryrefslogtreecommitdiff
path: root/sysdeps/unix/xmknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/xmknod.c')
-rw-r--r--sysdeps/unix/xmknod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/xmknod.c b/sysdeps/unix/xmknod.c
index 81c794a435..21bd3f48bd 100644
--- a/sysdeps/unix/xmknod.c
+++ b/sysdeps/unix/xmknod.c
@@ -31,7 +31,7 @@ __xmknod (int vers, const char *path, mode_t mode, dev_t *dev)
{
if (vers != _MKNOD_VER)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}