File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ if (ANDROID OR CYGWIN OR CMAKE_SYSTEM_NAME MATCHES "AIX|DragonFly|FreeBSD|Haiku|
21
21
set (HAVE_MACH_MACH_H 0)
22
22
set (HAVE_MALLOC_MALLOC_H 0)
23
23
set (HAVE_PTHREAD_H 1)
24
- set (HAVE_SYS_AUXV_H 1)
25
24
set (HAVE_SYS_MMAN_H 1)
26
25
set (HAVE_SYSEXITS_H 1)
27
26
set (HAVE_UNISTD_H 1)
53
52
check_include_file(mach/mach.h HAVE_MACH_MACH_H)
54
53
check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
55
54
check_include_file(pthread.h HAVE_PTHREAD_H)
56
- check_include_file(sys/auxv.h HAVE_SYS_AUXV_H)
57
55
check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
58
56
check_include_file(sysexits.h HAVE_SYSEXITS_H)
59
57
check_include_file(unistd.h HAVE_UNISTD_H)
@@ -321,6 +319,7 @@ check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
321
319
check_symbol_exists(isatty unistd.h HAVE_ISATTY)
322
320
check_symbol_exists(futimens sys/stat.h HAVE_FUTIMENS)
323
321
check_symbol_exists(futimes sys/time.h HAVE_FUTIMES)
322
+ check_symbol_exists(getauxval sys/auxv.h HAVE_GETAUXVAL)
324
323
# AddressSanitizer conflicts with lib/Support/Unix/Signals.inc
325
324
# Avoid sigaltstack on Apple platforms, where backtrace() cannot handle it
326
325
# (rdar://7089625) and _Unwind_Backtrace is unusable because it cannot unwind
Original file line number Diff line number Diff line change 295
295
296
296
#cmakedefine HAVE_BUILTIN_THREAD_POINTER ${HAVE_BUILTIN_THREAD_POINTER}
297
297
298
- #cmakedefine HAVE_SYS_AUXV_H ${HAVE_SYS_AUXV_H }
298
+ #cmakedefine HAVE_GETAUXVAL ${HAVE_GETAUXVAL }
299
299
300
300
#endif
Original file line number Diff line number Diff line change 31
31
#ifdef HAVE_MALLOC_MALLOC_H
32
32
#include < malloc/malloc.h>
33
33
#endif
34
- #ifdef HAVE_SYS_AUXV_H
34
+ #ifdef HAVE_GETAUXVAL
35
35
#include < sys/auxv.h>
36
36
#endif
37
37
@@ -66,7 +66,7 @@ Process::Pid Process::getProcessId() {
66
66
// On Cygwin, getpagesize() returns 64k(AllocationGranularity) and
67
67
// offset in mmap(3) should be aligned to the AllocationGranularity.
68
68
Expected<unsigned > Process::getPageSize () {
69
- #if defined(HAVE_SYS_AUXV_H )
69
+ #if defined(HAVE_GETAUXVAL )
70
70
static const int page_size = ::getauxval (AT_PAGESZ);
71
71
#elif defined(HAVE_GETPAGESIZE)
72
72
static const int page_size = ::getpagesize ();
You can’t perform that action at this time.
0 commit comments