[libc] Fix ioctl errno inclusion (#143928)

Since errno was moved in
https://github.com/llvm/llvm-project/pull/143187 the code including it
in https://github.com/llvm/llvm-project/pull/141393 was rendered
incorrect. This patch fixes the include and the cmake depends.
This commit is contained in:
Michael Jones
2025-06-12 09:38:43 -07:00
committed by GitHub
parent cd8facebab
commit ae7ea6e3a2
3 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ add_libc_unittest(
SRCS
ioctl_test.cpp
DEPENDS
libc.hdr.ioctl_macros
libc.hdr.sys_ioctl_macros
libc.src.sys.ioctl.ioctl
libc.src.errno.errno
libc.src.fcntl.open
@@ -15,3 +15,4 @@ add_libc_unittest(
libc.src.unistd.read
libc.src.unistd.write
)

View File

@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "src/errno/libc_errno.h"
#include "src/__support/libc_errno.h"
#include "src/fcntl/open.h"
#include "src/sys/ioctl/ioctl.h"
#include "src/unistd/close.h"