Skip to content

Commit c930dbf

Browse files
michaelrj-googletomtor
authored andcommitted
[libc] Fix ioctl errno inclusion (llvm#143928)
Since errno was moved in llvm#143187 the code including it in llvm#141393 was rendered incorrect. This patch fixes the include and the cmake depends.
1 parent a5a6f0e commit c930dbf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

libc/src/sys/ioctl/linux/ioctl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
1212
#include "src/__support/common.h"
13-
#include "src/errno/libc_errno.h"
13+
#include "src/__support/libc_errno.h"
1414
#include <stdarg.h>
1515
#include <sys/syscall.h> // For syscall numbers.
1616

libc/test/src/sys/ioctl/linux/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ add_libc_unittest(
77
SRCS
88
ioctl_test.cpp
99
DEPENDS
10-
libc.hdr.ioctl_macros
10+
libc.hdr.sys_ioctl_macros
1111
libc.src.sys.ioctl.ioctl
1212
libc.src.errno.errno
1313
libc.src.fcntl.open
1414
libc.src.unistd.close
1515
libc.src.unistd.read
1616
libc.src.unistd.write
1717
)
18+

libc/test/src/sys/ioctl/linux/ioctl_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "src/errno/libc_errno.h"
9+
#include "src/__support/libc_errno.h"
1010
#include "src/fcntl/open.h"
1111
#include "src/sys/ioctl/ioctl.h"
1212
#include "src/unistd/close.h"

0 commit comments

Comments
 (0)