fix shmdt syscall calling convention on old archs
authorRich Felker <dalias@aerifal.cx>
Sun, 28 Oct 2012 19:04:26 +0000 (15:04 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 28 Oct 2012 19:04:26 +0000 (15:04 -0400)
src/ipc/shmdt.c

index 2e198b3eefb8a153605fbbc2ba83d5b623bf00db..d4fac8f183a12281c76280377132de08a965059c 100644 (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
 }