From 765cdd0bffd77960ae852104fc4ea5edcdb8aed3 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 11 Oct 2019 11:39:04 -0300 Subject: sysvipc: Implement semop based on semtimedop Besides semop being a subset of semtimedop, new 32-bit architectures on Linux are not expected to provide the syscall (only the 64-bit time semtimedop). Also, Linux 5.1 only wired-up semtimedop for the 64-bit architectures that missed it (powerpc, s390, and sparc). This simplifies the code to support it. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Florian Weimer --- include/sys/sem.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/sys') diff --git a/include/sys/sem.h b/include/sys/sem.h index b0fb201bd0..69fdf1f752 100644 --- a/include/sys/sem.h +++ b/include/sys/sem.h @@ -1 +1,9 @@ -#include +#ifndef _SYS_SEM_H +# include + +# ifndef _ISOMAC + +__typeof__ (semtimedop) __semtimedop attribute_hidden; + +# endif +#endif -- cgit v1.2.3