From 1125e780455a8290b6c1407c9ded8d88346da93a Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Fri, 31 Aug 2018 08:51:29 +0000 Subject: [PATCH] Try to fix internal_sysctl() for MacOSX Cast the first argument to (int *) removing const. llvm-svn: 341187 --- compiler-rt/lib/sanitizer_common/sanitizer_mac.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index cfc685d..5420869 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -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) { -- 2.7.4