Try to fix internal_sysctl() for MacOSX

Cast the first argument to (int *) removing const.

llvm-svn: 341187
This commit is contained in:
Kamil Rytarowski 2018-08-31 08:51:29 +00:00
parent 8b0853a6da
commit 1125e78045
1 changed files with 1 additions and 1 deletions

View File

@ -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) {