diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-08-31 09:35:33 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-08-31 09:35:33 +0000 |
commit | 43b15cddac7597f86ce9f93f23b8b2f28878f5c6 (patch) | |
tree | 322fdf5bc940451803d9389ced13c7b4c9bf189e | |
parent | 95f4120f09cf06203cc25e31fe743dc0a8157e06 (diff) | |
download | bcm5719-llvm-43b15cddac7597f86ce9f93f23b8b2f28878f5c6.tar.gz bcm5719-llvm-43b15cddac7597f86ce9f93f23b8b2f28878f5c6.zip |
Try to unbreak internal_sysctl() for MacOSX
Cast the 5th argument to (void *), removing cast.
llvm-svn: 341192
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_mac.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 5420869bdb7..4861558e9aa 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -215,7 +215,8 @@ int internal_fork() { int internal_sysctl(const int *name, unsigned int namelen, void *oldp, uptr *oldlenp, const void *newp, uptr newlen) { - return sysctl((int *)name, namelen, oldp, (size_t *)oldlenp, newp, (size_t)newlen); + return sysctl((int *)name, namelen, oldp, (size_t *)oldlenp, (void *)newp, + (size_t)newlen); } int internal_forkpty(int *amaster) { |