diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-07-01 18:11:20 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-07-01 18:11:20 +0000 |
commit | ed1c0ffe0b2287deaee7cba7506c93aa34c6d4b7 (patch) | |
tree | aacc869a6945fbd60630f775bd2530fa3d2eaed9 /cmake/config-ix.cmake | |
parent | b1d7a5d1146c30a54002b7ab49daf024e3174b95 (diff) | |
download | llvm-ed1c0ffe0b2287deaee7cba7506c93aa34c6d4b7.tar.gz llvm-ed1c0ffe0b2287deaee7cba7506c93aa34c6d4b7.tar.bz2 llvm-ed1c0ffe0b2287deaee7cba7506c93aa34c6d4b7.tar.xz |
Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the
Windows variant, strerror_s, but I couldn't test that.
I'll update configure and config.h.in in a subsequent patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index a613ddd8e3..731071ef85 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -67,6 +67,9 @@ check_symbol_exists(malloc_zone_statistics malloc/malloc.h HAVE_MALLOC_ZONE_STATISTICS) check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK) check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL) +check_symbol_exists(strerror string.h HAVE_STRERROR) +check_symbol_exists(strerror_r string.h HAVE_STRERROR_R) +check_symbol_exists(strerror_s string.h HAVE_STRERROR_S) check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC) if( LLVM_USING_GLIBC ) |