fix shmdt syscall calling convention on old archs

This commit is contained in:
Rich Felker 2012-10-28 15:04:26 -04:00
parent 8fc7b5965a
commit 86dd1e7bbb
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ int shmdt(const void *addr)
#ifdef SYS_shmdt
return syscall(SYS_shmdt, addr);
#else
return syscall(SYS_ipc, IPCOP_shmdt, addr);
return syscall(SYS_ipc, IPCOP_shmdt, 0, 0, 0, addr);
#endif
}