@@ -22,13 +22,9 @@ 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_SIGNAL_H 1)
2625 set (HAVE_SYS_IOCTL_H 1)
2726 set (HAVE_SYS_MMAN_H 1)
28- set (HAVE_SYS_PARAM_H 1)
2927 set (HAVE_SYS_RESOURCE_H 1)
30- set (HAVE_SYS_STAT_H 1)
31- set (HAVE_SYS_TIME_H 1)
3228 set (HAVE_SYSEXITS_H 1)
3329 set (HAVE_TERMIOS_H 1)
3430 set (HAVE_UNISTD_H 1)
@@ -37,13 +33,9 @@ elseif (APPLE)
3733 set (HAVE_MACH_MACH_H 1)
3834 set (HAVE_MALLOC_MALLOC_H 1)
3935 set (HAVE_PTHREAD_H 1)
40- set (HAVE_SIGNAL_H 1)
4136 set (HAVE_SYS_IOCTL_H 1)
4237 set (HAVE_SYS_MMAN_H 1)
43- set (HAVE_SYS_PARAM_H 1)
4438 set (HAVE_SYS_RESOURCE_H 1)
45- set (HAVE_SYS_STAT_H 1)
46- set (HAVE_SYS_TIME_H 1)
4739 set (HAVE_SYSEXITS_H 1)
4840 set (HAVE_TERMIOS_H 1)
4941 set (HAVE_UNISTD_H 1)
@@ -52,13 +44,9 @@ elseif (PURE_WINDOWS)
5244 set (HAVE_MACH_MACH_H 0)
5345 set (HAVE_MALLOC_MALLOC_H 0)
5446 set (HAVE_PTHREAD_H 0)
55- set (HAVE_SIGNAL_H 1)
5647 set (HAVE_SYS_IOCTL_H 0)
5748 set (HAVE_SYS_MMAN_H 0)
58- set (HAVE_SYS_PARAM_H 0)
5949 set (HAVE_SYS_RESOURCE_H 0)
60- set (HAVE_SYS_STAT_H 1)
61- set (HAVE_SYS_TIME_H 0)
6250 set (HAVE_SYSEXITS_H 0)
6351 set (HAVE_TERMIOS_H 0)
6452 set (HAVE_UNISTD_H 0)
@@ -69,13 +57,9 @@ elseif (ZOS)
6957 set (HAVE_MACH_MACH_H 0)
7058 set (HAVE_MALLOC_MALLOC_H 0)
7159 set (HAVE_PTHREAD_H 1)
72- set (HAVE_SIGNAL_H 1)
7360 set (HAVE_SYS_IOCTL_H 1)
7461 set (HAVE_SYS_MMAN_H 1)
75- set (HAVE_SYS_PARAM_H 0)
7662 set (HAVE_SYS_RESOURCE_H 1)
77- set (HAVE_SYS_STAT_H 1)
78- set (HAVE_SYS_TIME_H 1)
7963 set (HAVE_SYSEXITS_H 0)
8064 set (HAVE_TERMIOS_H 1)
8165 set (HAVE_UNISTD_H 1)
@@ -85,13 +69,9 @@ else()
8569 check_include_file(mach/mach.h HAVE_MACH_MACH_H)
8670 check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
8771 check_include_file(pthread.h HAVE_PTHREAD_H)
88- check_include_file(signal.h HAVE_SIGNAL_H)
8972 check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
9073 check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
91- check_include_file(sys/param.h HAVE_SYS_PARAM_H)
9274 check_include_file(sys/resource .h HAVE_SYS_RESOURCE_H)
93- check_include_file(sys/stat.h HAVE_SYS_STAT_H)
94- check_include_file(sys/time.h HAVE_SYS_TIME_H)
9575 check_include_file(sysexits.h HAVE_SYSEXITS_H)
9676 check_include_file(termios.h HAVE_TERMIOS_H)
9777 check_include_file(unistd.h HAVE_UNISTD_H)
@@ -364,7 +344,7 @@ check_symbol_exists(futimes sys/time.h HAVE_FUTIMES)
364344# Avoid sigaltstack on Apple platforms, where backtrace() cannot handle it
365345# (rdar://7089625) and _Unwind_Backtrace is unusable because it cannot unwind
366346# past the signal handler after an assertion failure (rdar://29866587).
367- if ( HAVE_SIGNAL_H AND NOT LLVM_USE_SANITIZER MATCHES ".*Address.*" AND NOT APPLE )
347+ if ( NOT LLVM_USE_SANITIZER MATCHES ".*Address.*" AND NOT APPLE )
368348 check_symbol_exists(sigaltstack signal.h HAVE_SIGALTSTACK)
369349endif ()
370350check_symbol_exists(mallctl malloc_np.h HAVE_MALLCTL)
0 commit comments