aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-11-06 09:23:02 +0100
committerAndreas Schwab <schwab@suse.de>2018-11-07 09:37:48 +0100
commit295132ff052b32960207d82a950c0efbf0766857 (patch)
tree1b2562fbe5b13a75aeaf8a2cddb133e9768bfab0 /sysdeps/unix/sysv/linux
parente143ceba564a94922f6e46bb3a22d7a53a909a03 (diff)
downloadglibc-295132ff052b32960207d82a950c0efbf0766857.tar
glibc-295132ff052b32960207d82a950c0efbf0766857.tar.gz
glibc-295132ff052b32960207d82a950c0efbf0766857.tar.bz2
glibc-295132ff052b32960207d82a950c0efbf0766857.zip
RISC-V: don't assume PI mutexes and robust futexes before 4.20 (bug 23864)
Support for futex_cmpxchg as only been added to 4.20-rc1.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/riscv/kernel-features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/kernel-features.h b/sysdeps/unix/sysv/linux/riscv/kernel-features.h
index 37f4d99a92..d21c824624 100644
--- a/sysdeps/unix/sysv/linux/riscv/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/riscv/kernel-features.h
@@ -21,3 +21,8 @@
#undef __ASSUME_CLONE_DEFAULT
#define __ASSUME_CLONE_BACKWARDS 1
+
+/* No support for PI mutexes or robust futexes before 4.20. */
+#if __LINUX_KERNEL_VERSION < 0x041400
+# undef __ASSUME_SET_ROBUST_LIST
+#endif