forked from OSchip/llvm-project
Try to fix internal_sysctl() for MacOSX
Cast the first argument to (int *) removing const. llvm-svn: 341187
This commit is contained in:
parent
8b0853a6da
commit
1125e78045
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue