Use 'check_symbol_exists' instead of 'check_function_exists' for finding isatty....
authorTed Kremenek <kremenek@apple.com>
Fri, 23 Dec 2011 01:31:45 +0000 (01:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 23 Dec 2011 01:31:45 +0000 (01:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147215 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/config-ix.cmake

index 88eaa74017528b7ea237bda0fc625879193a93e3..b380a48637fd143139f93d6b4c6aa74ae19064c5 100755 (executable)
@@ -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)