@@ -19,9 +19,6 @@ include(HandleLLVMStdlib)
1919
2020if (ANDROID OR CYGWIN OR CMAKE_SYSTEM_NAME MATCHES "AIX|DragonFly|FreeBSD|Haiku|Linux|NetBSD|OpenBSD|SunOS" )
2121 set (HAVE_DLFCN_H 1)
22- set (HAVE_ERRNO_H 1)
23- set (HAVE_FCNTL_H 1)
24- set (HAVE_FENV_H 1)
2522 set (HAVE_MACH_MACH_H 0)
2623 set (HAVE_MALLOC_MALLOC_H 0)
2724 set (HAVE_PTHREAD_H 1)
@@ -32,15 +29,11 @@ if (ANDROID OR CYGWIN OR CMAKE_SYSTEM_NAME MATCHES "AIX|DragonFly|FreeBSD|Haiku|
3229 set (HAVE_SYS_RESOURCE_H 1)
3330 set (HAVE_SYS_STAT_H 1)
3431 set (HAVE_SYS_TIME_H 1)
35- set (HAVE_SYS_TYPES_H 1)
3632 set (HAVE_SYSEXITS_H 1)
3733 set (HAVE_TERMIOS_H 1)
3834 set (HAVE_UNISTD_H 1)
3935elseif (APPLE )
4036 set (HAVE_DLFCN_H 1)
41- set (HAVE_ERRNO_H 1)
42- set (HAVE_FCNTL_H 1)
43- set (HAVE_FENV_H 1)
4437 set (HAVE_MACH_MACH_H 1)
4538 set (HAVE_MALLOC_MALLOC_H 1)
4639 set (HAVE_PTHREAD_H 1)
@@ -51,15 +44,11 @@ elseif (APPLE)
5144 set (HAVE_SYS_RESOURCE_H 1)
5245 set (HAVE_SYS_STAT_H 1)
5346 set (HAVE_SYS_TIME_H 1)
54- set (HAVE_SYS_TYPES_H 1)
5547 set (HAVE_SYSEXITS_H 1)
5648 set (HAVE_TERMIOS_H 1)
5749 set (HAVE_UNISTD_H 1)
5850elseif (PURE_WINDOWS)
5951 set (HAVE_DLFCN_H 0)
60- set (HAVE_ERRNO_H 1)
61- set (HAVE_FCNTL_H 1)
62- set (HAVE_FENV_H 1)
6352 set (HAVE_MACH_MACH_H 0)
6453 set (HAVE_MALLOC_MALLOC_H 0)
6554 set (HAVE_PTHREAD_H 0)
@@ -70,17 +59,13 @@ elseif (PURE_WINDOWS)
7059 set (HAVE_SYS_RESOURCE_H 0)
7160 set (HAVE_SYS_STAT_H 1)
7261 set (HAVE_SYS_TIME_H 0)
73- set (HAVE_SYS_TYPES_H 1)
7462 set (HAVE_SYSEXITS_H 0)
7563 set (HAVE_TERMIOS_H 0)
7664 set (HAVE_UNISTD_H 0)
7765elseif (ZOS)
7866 # Confirmed in
7967 # https://github.com/llvm/llvm-project/pull/104706#issuecomment-2297109613
8068 set (HAVE_DLFCN_H 1)
81- set (HAVE_ERRNO_H 1)
82- set (HAVE_FCNTL_H 1)
83- set (HAVE_FENV_H 1)
8469 set (HAVE_MACH_MACH_H 0)
8570 set (HAVE_MALLOC_MALLOC_H 0)
8671 set (HAVE_PTHREAD_H 1)
@@ -91,16 +76,12 @@ elseif (ZOS)
9176 set (HAVE_SYS_RESOURCE_H 1)
9277 set (HAVE_SYS_STAT_H 1)
9378 set (HAVE_SYS_TIME_H 1)
94- set (HAVE_SYS_TYPES_H 1)
9579 set (HAVE_SYSEXITS_H 0)
9680 set (HAVE_TERMIOS_H 1)
9781 set (HAVE_UNISTD_H 1)
9882else ()
9983 # Other platforms that we don't promise support for.
10084 check_include_file(dlfcn.h HAVE_DLFCN_H)
101- check_include_file(errno.h HAVE_ERRNO_H)
102- check_include_file(fcntl.h HAVE_FCNTL_H)
103- check_include_file(fenv.h HAVE_FENV_H)
10485 check_include_file(mach/mach.h HAVE_MACH_MACH_H)
10586 check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
10687 check_include_file(pthread.h HAVE_PTHREAD_H)
@@ -111,7 +92,6 @@ else()
11192 check_include_file(sys/resource .h HAVE_SYS_RESOURCE_H)
11293 check_include_file(sys/stat.h HAVE_SYS_STAT_H)
11394 check_include_file(sys/time.h HAVE_SYS_TIME_H)
114- check_include_file(sys/types.h HAVE_SYS_TYPES_H)
11595 check_include_file(sysexits.h HAVE_SYSEXITS_H)
11696 check_include_file(termios.h HAVE_TERMIOS_H)
11797 check_include_file(unistd.h HAVE_UNISTD_H)
0 commit comments