diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp @@ -47,7 +47,7 @@ #if SANITIZER_SOLARIS // Illumos' declaration of madvie cannot be made visible if _XOPEN_SOURCE // is defined as g++ does on Solaris. -extern "C" int madvise(caddr_t, size_t, int); +extern "C" int madvise(void *, size_t, int); #endif typedef void (*sa_sigaction_t)(int, siginfo_t *, void *);