[compiler-rt] 60e32a1 - [fuzzer] Fix build on musl
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 13 12:32:13 PDT 2021
Author: Khem Raj
Date: 2021-06-13T12:32:07-07:00
New Revision: 60e32a1f34e9ea60155a98bbe6ee5ec2a383efa3
URL: https://github.com/llvm/llvm-project/commit/60e32a1f34e9ea60155a98bbe6ee5ec2a383efa3
DIFF: https://github.com/llvm/llvm-project/commit/60e32a1f34e9ea60155a98bbe6ee5ec2a383efa3.diff
LOG: [fuzzer] Fix build on musl
cstddef is needed for size_t definition.
(Multiple headers can provide size_t but none of them exists.)
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D96213
Added:
Modified:
compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp b/compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
index b87798603fda5..d5b0a42fd3fb4 100644
--- a/compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerInterceptors.cpp
@@ -25,6 +25,7 @@
}
#include <cassert>
+#include <cstddef> // for size_t
#include <cstdint>
#include <dlfcn.h> // for dlsym()
More information about the llvm-commits
mailing list