about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-01-03 01:52:29 +0000
committerUlrich Drepper <drepper@redhat.com>2009-01-03 01:52:29 +0000
commitebb2788e97b264418270b1e03e66dd96c5ab47c9 (patch)
tree224b98d49db7060a91fa696059b81c2a812b97c8
parent720981169b1939283e906c85eada83415e7944a0 (diff)
downloadglibc-ebb2788e97b264418270b1e03e66dd96c5ab47c9.tar.gz
glibc-ebb2788e97b264418270b1e03e66dd96c5ab47c9.tar.xz
glibc-ebb2788e97b264418270b1e03e66dd96c5ab47c9.zip
* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_FUTEX_CLOCK_REALTIME): Define.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 450a5b6092..9bc0afced4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/unix/sysv/linux/kernel-features.h
+	(__ASSUME_FUTEX_CLOCK_REALTIME): Define.
+
 	* wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
 	if no output is written.
 
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 42b1c105a2..d4f2487538 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -517,3 +517,10 @@
 	|| defined __ia64__ || defined __sparc__ || __s390__)
 # define __ASSUME_ACCEPT4	1
 #endif
+
+/* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29.  */
+#if __LINUX_KERNEL_VERSION >= 0x02061d \
+    && (defined __i386__ || defined __x86_64__ || defined __powerpc__ \
+	|| defined __ia64__ || defined __sparc__ || __s390__)
+# define __ASSUME_FUTEX_CLOCK_REALTIME	1
+#endif