From 4acfc287d859bc643c9f9fa63d82e8c90b984d7c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 9 May 2019 22:49:28 +0000 Subject: ipc: prefer SYS_ipc when it is defined Linux v5.1 introduced ipc syscalls on targets where previously only SYS_ipc was available, change the logic such that the ipc code keeps using SYS_ipc which works backward compatibly on older kernels. This changes behaviour on microblaze which had both mechanisms, now SYS_ipc will be used instead of separate syscalls. --- src/ipc/semctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipc/semctl.c') diff --git a/src/ipc/semctl.c b/src/ipc/semctl.c index 941e2813..ce1fb164 100644 --- a/src/ipc/semctl.c +++ b/src/ipc/semctl.c @@ -33,7 +33,7 @@ int semctl(int id, int num, int cmd, ...) arg.buf = &tmp; } #endif -#ifdef SYS_semctl +#ifndef SYS_ipc int r = __syscall(SYS_semctl, id, num, cmd | IPC_64, arg.buf); #else int r = __syscall(SYS_ipc, IPCOP_semctl, id, num, cmd | IPC_64, &arg.buf); -- cgit v1.2.1