summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-08-31 08:51:29 +0000
committerKamil Rytarowski <n54@gmx.com>2018-08-31 08:51:29 +0000
commit1125e780455a8290b6c1407c9ded8d88346da93a (patch)
treed61b757b0c734bb484865f988335acd3eed7c3a1
parent8b0853a6da02bcf2aa8806cc9f087cfdca8ffb4a (diff)
downloadbcm5719-llvm-1125e780455a8290b6c1407c9ded8d88346da93a.tar.gz
bcm5719-llvm-1125e780455a8290b6c1407c9ded8d88346da93a.zip
Try to fix internal_sysctl() for MacOSX
Cast the first argument to (int *) removing const. llvm-svn: 341187
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_mac.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
index cfc685d606f..5420869bdb7 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) {
OpenPOWER on IntegriCloud