Skip to content

Commit ed634bb

Browse files
committed
fix bad includes and missing macro for ioctl test
1 parent b5b86c2 commit ed634bb

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
// around the definitions of macros like _IO, _IOR, _IOW, and _IOWR that I don't
1616
// think is worth digging into right now.
1717
#define TIOCGETD 0x5424
18+
#define FIONREAD 0x541B
1819

1920
#endif // LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H

libc/src/sys/ioctl/ioctl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLVM_LIBC_SRC_SYS_IOCTL_IOCTL_H
1111

1212
#include "src/__support/macros/config.h"
13-
#include <sys/ioctl.h>
1413

1514
namespace LIBC_NAMESPACE_DECL {
1615

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ add_libc_unittest(
88
ioctl_test.cpp
99
DEPENDS
1010
libc.include.sys_ioctl
11-
libc.include.sys_filio
1211
libc.src.sys.ioctl.ioctl
1312
libc.src.errno.errno
1413
)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "src/errno/libc_errno.h"
1010
#include "src/sys/ioctl/ioctl.h"
1111
#include "test/UnitTest/ErrnoSetterMatcher.h"
12-
#include <sys/filio.h>
1312
#include <sys/ioctl.h>
1413

1514
using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails;

0 commit comments

Comments
 (0)