aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2022-02-13 14:13:16 +0100
committerNikita Popov <npopov@redhat.com>2022-02-15 09:42:40 +0100
commit8f55cd0178c192232929afae5d73c363167b26d8 (patch)
tree80b800b2bfedaa443224d0bdeb5834d2432f5a72 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent1c456a82205cd3a06c87ad498f0bbddf963d8645 (diff)
downloadllvm-8f55cd0178c192232929afae5d73c363167b26d8.zip
llvm-8f55cd0178c192232929afae5d73c363167b26d8.tar.gz
llvm-8f55cd0178c192232929afae5d73c363167b26d8.tar.bz2
[Support] Fix build on illumos
D116366 added a call to madvise() in Path.inc. Unfortunately, Illumos does not declare this function if _XOPEN_SOURCE is defined (which it is by default) and we need to provide the declaration manually. This is the same workaround used in sanitizers: https://github.com/llvm/llvm-project/blob/ee423d93ead39e94c2970b3cc7ef6e6faa75d10b/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp#L77-L85 Differential Revision: https://reviews.llvm.org/D119695
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions