projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
semtimedop: fix timespec kernel ABI mismatch for 32-bit timeouts on x32
[musl]
/
src
/
ipc
/
semtimedop.c
diff --git
a/src/ipc/semtimedop.c
b/src/ipc/semtimedop.c
index
1632e7b
..
a104af2
100644
(file)
--- a/
src/ipc/semtimedop.c
+++ b/
src/ipc/semtimedop.c
@@
-7,7
+7,8
@@
#define IS32BIT(x) !((x)+0x80000000ULL>>32)
#define CLAMP(x) (int)(IS32BIT(x) ? (x) : 0x7fffffffU+((0ULL+(x))>>63))
#define IS32BIT(x) !((x)+0x80000000ULL>>32)
#define CLAMP(x) (int)(IS32BIT(x) ? (x) : 0x7fffffffU+((0ULL+(x))>>63))
-#if !defined(SYS_semtimedop) && !defined(SYS_ipc)
+#if !defined(SYS_semtimedop) && !defined(SYS_ipc) || \
+ SYS_semtimedop == SYS_semtimedop_time64
#define NO_TIME32 1
#else
#define NO_TIME32 0
#define NO_TIME32 1
#else
#define NO_TIME32 0