[PATCH] D84388: [compiler-rt][sanitizers] Fix Solaris madvise declaration
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 00:37:59 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG55c0f12a8699: [compiler-rt][sanitizers] Fix Solaris madvise declaration (authored by ro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84388/new/
https://reviews.llvm.org/D84388
Files:
compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
+++ 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 *);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84388.280042.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200723/71a7cbe6/attachment.bin>
More information about the llvm-commits
mailing list