[compiler-rt] r341187 - Try to fix internal_sysctl() for MacOSX
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 31 01:51:30 PDT 2018
Author: kamil
Date: Fri Aug 31 01:51:29 2018
New Revision: 341187
URL: http://llvm.org/viewvc/llvm-project?rev=341187&view=rev
Log:
Try to fix internal_sysctl() for MacOSX
Cast the first argument to (int *) removing const.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=341187&r1=341186&r2=341187&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Fri Aug 31 01:51:29 2018
@@ -215,7 +215,7 @@ int internal_fork() {
int internal_sysctl(const int *name, unsigned int namelen, void *oldp,
uptr *oldlenp, const void *newp, uptr newlen) {
- return sysctl(name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen);
+ return sysctl((int *)name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen);
}
int internal_forkpty(int *amaster) {
More information about the llvm-commits
mailing list