diff options
Diffstat (limited to 'libc/misc/dirent/dirfd.c')
-rw-r--r-- | libc/misc/dirent/dirfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/dirent/dirfd.c b/libc/misc/dirent/dirfd.c index d401dccd2..d6c1e6647 100644 --- a/libc/misc/dirent/dirfd.c +++ b/libc/misc/dirent/dirfd.c @@ -4,7 +4,7 @@ int dirfd(DIR * dir) { if (!dir || dir->dd_fd == -1) { - errno = EBADF; + __set_errno(EBADF); return -1; } |