diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-12-23 01:31:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-12-23 01:31:45 +0000 |
commit | 6ea1b76d71bca1f11d9d3842fed98b7b8086615d (patch) | |
tree | 4857d3914fe716a8ce6af1dd41ef85aad078bbf1 | |
parent | 6aa664641eb08173d56e4aedb7ba8a56e116de50 (diff) | |
download | bcm5719-llvm-6ea1b76d71bca1f11d9d3842fed98b7b8086615d.tar.gz bcm5719-llvm-6ea1b76d71bca1f11d9d3842fed98b7b8086615d.zip |
Use 'check_symbol_exists' instead of 'check_function_exists' for finding isatty. This change allows Xcode generated projects to have HAVE_ISATTY to be properly defined.
llvm-svn: 147215
-rwxr-xr-x | llvm/cmake/config-ix.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 88eaa740175..b380a48637f 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -94,7 +94,7 @@ endif() check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE) check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT) -check_function_exists(isatty HAVE_ISATTY) +check_symbol_exists(isatty unistd.h HAVE_ISATTY) check_symbol_exists(index strings.h HAVE_INDEX) check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH) check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H) |