Skip to content

Commit 219beb7

Browse files
committed
[CMake] Remove HAVE_SYS_IOCTL_H
1 parent 86a81d4 commit 219beb7

File tree

6 files changed

+0
-19
lines changed

6 files changed

+0
-19
lines changed

llvm/cmake/config-ix.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if (ANDROID OR CYGWIN OR CMAKE_SYSTEM_NAME MATCHES "AIX|DragonFly|FreeBSD|Haiku|
2222
set(HAVE_MACH_MACH_H 0)
2323
set(HAVE_MALLOC_MALLOC_H 0)
2424
set(HAVE_PTHREAD_H 1)
25-
set(HAVE_SYS_IOCTL_H 1)
2625
set(HAVE_SYS_MMAN_H 1)
2726
set(HAVE_SYS_RESOURCE_H 1)
2827
set(HAVE_SYSEXITS_H 1)
@@ -32,7 +31,6 @@ elseif (APPLE)
3231
set(HAVE_MACH_MACH_H 1)
3332
set(HAVE_MALLOC_MALLOC_H 1)
3433
set(HAVE_PTHREAD_H 1)
35-
set(HAVE_SYS_IOCTL_H 1)
3634
set(HAVE_SYS_MMAN_H 1)
3735
set(HAVE_SYS_RESOURCE_H 1)
3836
set(HAVE_SYSEXITS_H 1)
@@ -42,7 +40,6 @@ elseif (PURE_WINDOWS)
4240
set(HAVE_MACH_MACH_H 0)
4341
set(HAVE_MALLOC_MALLOC_H 0)
4442
set(HAVE_PTHREAD_H 0)
45-
set(HAVE_SYS_IOCTL_H 0)
4643
set(HAVE_SYS_MMAN_H 0)
4744
set(HAVE_SYS_RESOURCE_H 0)
4845
set(HAVE_SYSEXITS_H 0)
@@ -54,7 +51,6 @@ elseif (ZOS)
5451
set(HAVE_MACH_MACH_H 0)
5552
set(HAVE_MALLOC_MALLOC_H 0)
5653
set(HAVE_PTHREAD_H 1)
57-
set(HAVE_SYS_IOCTL_H 1)
5854
set(HAVE_SYS_MMAN_H 1)
5955
set(HAVE_SYS_RESOURCE_H 1)
6056
set(HAVE_SYSEXITS_H 0)
@@ -65,7 +61,6 @@ else()
6561
check_include_file(mach/mach.h HAVE_MACH_MACH_H)
6662
check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
6763
check_include_file(pthread.h HAVE_PTHREAD_H)
68-
check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
6964
check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
7065
check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
7166
check_include_file(sysexits.h HAVE_SYSEXITS_H)

llvm/include/llvm/Config/config.h.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@
177177
/* Define to 1 if you have the `sysconf' function. */
178178
#cmakedefine HAVE_SYSCONF ${HAVE_SYSCONF}
179179

180-
/* Define to 1 if you have the <sys/ioctl.h> header file. */
181-
#cmakedefine HAVE_SYS_IOCTL_H ${HAVE_SYS_IOCTL_H}
182-
183180
/* Define to 1 if you have the <sys/mman.h> header file. */
184181
#cmakedefine HAVE_SYS_MMAN_H ${HAVE_SYS_MMAN_H}
185182

llvm/lib/Support/Unix/Process.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
#ifdef HAVE_MALLOC_MALLOC_H
3434
#include <malloc/malloc.h>
3535
#endif
36-
#ifdef HAVE_SYS_IOCTL_H
37-
#include <sys/ioctl.h>
38-
#endif
3936

4037
//===----------------------------------------------------------------------===//
4138
//=== WARNING: Implementation here must contain only generic UNIX code that

llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ write_cmake_config("config") {
221221
"HAVE_SIGALTSTACK=",
222222
"HAVE_STRERROR_R=",
223223
"HAVE_SYSCONF=",
224-
"HAVE_SYS_IOCTL_H=",
225224
"HAVE_SYS_MMAN_H=",
226225
"HAVE_SYS_RESOURCE_H=",
227226
"HAVE_UNISTD_H=",
@@ -254,7 +253,6 @@ write_cmake_config("config") {
254253
"HAVE_SIGALTSTACK=1",
255254
"HAVE_STRERROR_R=1",
256255
"HAVE_SYSCONF=1",
257-
"HAVE_SYS_IOCTL_H=1",
258256
"HAVE_SYS_MMAN_H=1",
259257
"HAVE_SYS_RESOURCE_H=1",
260258
"HAVE_UNISTD_H=1",

utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@
180180
/* Define to 1 if you have the `sysconf' function. */
181181
#define HAVE_SYSCONF 1
182182

183-
/* Define to 1 if you have the <sys/ioctl.h> header file. */
184-
#define HAVE_SYS_IOCTL_H 1
185-
186183
/* Define to 1 if you have the <sys/mman.h> header file. */
187184
#define HAVE_SYS_MMAN_H 1
188185

utils/bazel/llvm_configs/config.h.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@
177177
/* Define to 1 if you have the `sysconf' function. */
178178
#cmakedefine HAVE_SYSCONF ${HAVE_SYSCONF}
179179

180-
/* Define to 1 if you have the <sys/ioctl.h> header file. */
181-
#cmakedefine HAVE_SYS_IOCTL_H ${HAVE_SYS_IOCTL_H}
182-
183180
/* Define to 1 if you have the <sys/mman.h> header file. */
184181
#cmakedefine HAVE_SYS_MMAN_H ${HAVE_SYS_MMAN_H}
185182

0 commit comments

Comments
 (0)