[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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user