Skip to content

Commit 86a81d4

Browse files
committed
[CMake] Remove HAVE_TERMIOS_H
The code path has been dead since 2019. See a3eb3d3
1 parent c5e4afe commit 86a81d4

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
@@ -26,7 +26,6 @@ if (ANDROID OR CYGWIN OR CMAKE_SYSTEM_NAME MATCHES "AIX|DragonFly|FreeBSD|Haiku|
2626
set(HAVE_SYS_MMAN_H 1)
2727
set(HAVE_SYS_RESOURCE_H 1)
2828
set(HAVE_SYSEXITS_H 1)
29-
set(HAVE_TERMIOS_H 1)
3029
set(HAVE_UNISTD_H 1)
3130
elseif (APPLE)
3231
set(HAVE_DLFCN_H 1)
@@ -37,7 +36,6 @@ elseif (APPLE)
3736
set(HAVE_SYS_MMAN_H 1)
3837
set(HAVE_SYS_RESOURCE_H 1)
3938
set(HAVE_SYSEXITS_H 1)
40-
set(HAVE_TERMIOS_H 1)
4139
set(HAVE_UNISTD_H 1)
4240
elseif (PURE_WINDOWS)
4341
set(HAVE_DLFCN_H 0)
@@ -48,7 +46,6 @@ elseif (PURE_WINDOWS)
4846
set(HAVE_SYS_MMAN_H 0)
4947
set(HAVE_SYS_RESOURCE_H 0)
5048
set(HAVE_SYSEXITS_H 0)
51-
set(HAVE_TERMIOS_H 0)
5249
set(HAVE_UNISTD_H 0)
5350
elseif (ZOS)
5451
# Confirmed in
@@ -61,7 +58,6 @@ elseif (ZOS)
6158
set(HAVE_SYS_MMAN_H 1)
6259
set(HAVE_SYS_RESOURCE_H 1)
6360
set(HAVE_SYSEXITS_H 0)
64-
set(HAVE_TERMIOS_H 1)
6561
set(HAVE_UNISTD_H 1)
6662
else()
6763
# Other platforms that we don't promise support for.
@@ -73,7 +69,6 @@ else()
7369
check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
7470
check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
7571
check_include_file(sysexits.h HAVE_SYSEXITS_H)
76-
check_include_file(termios.h HAVE_TERMIOS_H)
7772
check_include_file(unistd.h HAVE_UNISTD_H)
7873
endif()
7974

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@
192192
/* Define to 1 if stat struct has st_mtim member. */
193193
#cmakedefine HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC ${HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC}
194194

195-
/* Define to 1 if you have the <termios.h> header file. */
196-
#cmakedefine HAVE_TERMIOS_H ${HAVE_TERMIOS_H}
197-
198195
/* Define to 1 if you have the <unistd.h> header file. */
199196
#cmakedefine HAVE_UNISTD_H ${HAVE_UNISTD_H}
200197

llvm/lib/Support/Unix/Process.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
#ifdef HAVE_SYS_IOCTL_H
3737
#include <sys/ioctl.h>
3838
#endif
39-
#ifdef HAVE_TERMIOS_H
40-
#include <termios.h>
41-
#endif
4239

4340
//===----------------------------------------------------------------------===//
4441
//=== 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
@@ -224,7 +224,6 @@ write_cmake_config("config") {
224224
"HAVE_SYS_IOCTL_H=",
225225
"HAVE_SYS_MMAN_H=",
226226
"HAVE_SYS_RESOURCE_H=",
227-
"HAVE_TERMIOS_H=",
228227
"HAVE_UNISTD_H=",
229228
"HAVE__CHSIZE_S=1",
230229
"HAVE__UNWIND_BACKTRACE=",
@@ -258,7 +257,6 @@ write_cmake_config("config") {
258257
"HAVE_SYS_IOCTL_H=1",
259258
"HAVE_SYS_MMAN_H=1",
260259
"HAVE_SYS_RESOURCE_H=1",
261-
"HAVE_TERMIOS_H=1",
262260
"HAVE_UNISTD_H=1",
263261
"HAVE__CHSIZE_S=",
264262
"HAVE__UNWIND_BACKTRACE=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
@@ -195,9 +195,6 @@
195195
/* Define to 1 if stat struct has st_mtim member. */
196196
/* HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC defined in Bazel */
197197

198-
/* Define to 1 if you have the <termios.h> header file. */
199-
#define HAVE_TERMIOS_H 1
200-
201198
/* Define to 1 if you have the <unistd.h> header file. */
202199
/* HAVE_UNISTD_H defined in Bazel */
203200

utils/bazel/llvm_configs/config.h.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@
192192
/* Define to 1 if stat struct has st_mtim member. */
193193
#cmakedefine HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC ${HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC}
194194

195-
/* Define to 1 if you have the <termios.h> header file. */
196-
#cmakedefine HAVE_TERMIOS_H ${HAVE_TERMIOS_H}
197-
198195
/* Define to 1 if you have the <unistd.h> header file. */
199196
#cmakedefine HAVE_UNISTD_H ${HAVE_UNISTD_H}
200197

0 commit comments

Comments
 (0)