Explorar el Código

fix shmdt syscall calling convention on old archs

Rich Felker hace 12 años
padre
commit
86dd1e7bbb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/ipc/shmdt.c

+ 1 - 1
src/ipc/shmdt.c

@@ -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
 }