diff options
Diffstat (limited to 'libc/misc/lock')
-rw-r--r-- | libc/misc/lock/flock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/lock/flock.c b/libc/misc/lock/flock.c index 3c1264655..80d15dfd4 100644 --- a/libc/misc/lock/flock.c +++ b/libc/misc/lock/flock.c @@ -42,7 +42,7 @@ int flock( int fd, int operation) lbuf.l_type = F_UNLCK; break; default: - errno = EINVAL; + __set_errno(EINVAL); return -1; } |