diff options
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index ca0b3a317..8d51f1f4f 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -139,7 +139,7 @@ int _xmknod (int version, const char * path, mode_t mode, dev_t *dev) case 1: return mknod (path, mode, *dev); default: - errno = EINVAL; + __set_errno(EINVAL); return -1; } } |