From 15c10a93f135eeb601fd374aa51d498505ce32a7 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Thu, 29 Sep 2016 21:18:05 +0000 Subject: [PATCH] Check for sysconf(3). llvm-svn: 282772 --- cmake/config-ix.cmake | 1 + include/llvm/Config/config.h.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 90e83070b9c..5c34fd04453 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -148,6 +148,7 @@ check_symbol_exists(arc4random "stdlib.h" HAVE_DECL_ARC4RANDOM) check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE) check_symbol_exists(_Unwind_Backtrace "unwind.h" HAVE__UNWIND_BACKTRACE) check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) +check_symbol_exists(sysconf unistd.h HAVE_SYSCONF) check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE) check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT) check_symbol_exists(isatty unistd.h HAVE_ISATTY) diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index 5f65aa37d11..42cb01b110b 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -285,7 +285,7 @@ #cmakedefine HAVE_STRTOQ ${HAVE_STRTOQ} /* Define to 1 if you have the `sysconf' function. */ -#undef HAVE_SYSCONF +#cmakedefine HAVE_SYSCONF ${HAVE_SYSCONF} /* Define to 1 if you have the header file, and it defines `DIR'. */