diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2019-04-05 08:40:08 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2019-04-05 08:40:08 +0000 |
commit | a0524521eafee30e3bd809033e93cc2f1efd8b83 (patch) | |
tree | e6171a842c951d64c705af892c0db18e0256ca21 /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | |
parent | 4a6dd1e68351b7f6bac5d2818addf7e1550d910d (diff) | |
download | llvm-a0524521eafee30e3bd809033e93cc2f1efd8b83.zip llvm-a0524521eafee30e3bd809033e93cc2f1efd8b83.tar.gz llvm-a0524521eafee30e3bd809033e93cc2f1efd8b83.tar.bz2 |
[Sanitizers] Fix sanitizer_linux_libcdep.cc compilation on Solaris
Both LLVM 8.0.0 and current trunk fail to compile on Solaris 11/x86 with
GCC 8.1.0:
/vol/llvm/src/llvm/dist/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc: In function ‘void __sanitizer::ReExec()’:
/vol/llvm/src/llvm/dist/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:831:14: error: ‘getexecname’ was not declared in this scope
pathname = getexecname();
^~~~~~~~~~~
/vol/llvm/src/llvm/dist/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:831:14: note: suggested alternative: ‘gethostname’
pathname = getexecname();
^~~~~~~~~~~
gethostname
This is easily fixed by including <stdlib.h> which declares that function.
With that patch, compilation continues.
Differential Revision: https://reviews.llvm.org/D60044
llvm-svn: 357751
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions