summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-22 12:31:53 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-22 12:31:53 +0000
commite1effb0da220059f95fd6dd2f0d33ac26024994e (patch)
tree43e4df79205205f2b3d243b5e9b782f052b99be5 /llvm/cmake/config-ix.cmake
parente2530dc8892c157aa684f434975ec6c43b61b51d (diff)
downloadbcm5719-llvm-e1effb0da220059f95fd6dd2f0d33ac26024994e.tar.gz
bcm5719-llvm-e1effb0da220059f95fd6dd2f0d33ac26024994e.zip
Add configure checking for pread(2) and use it to save a syscall when reading files.
llvm-svn: 145061
Diffstat (limited to 'llvm/cmake/config-ix.cmake')
-rwxr-xr-xllvm/cmake/config-ix.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 62699fa5aaf..0943ae71b83 100755
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -126,6 +126,8 @@ check_symbol_exists(readdir "sys/types.h;dirent.h" HAVE_READDIR)
check_symbol_exists(getcwd unistd.h HAVE_GETCWD)
check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT)
+check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)
+check_symbol_exists(pread unistd.h HAVE_PREAD)
check_symbol_exists(rindex strings.h HAVE_RINDEX)
check_symbol_exists(strchr string.h HAVE_STRCHR)
check_symbol_exists(strcmp string.h HAVE_STRCMP)
OpenPOWER on IntegriCloud