about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/kernel-features.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-10-29 10:12:59 -0700
committerUlrich Drepper <drepper@redhat.com>2009-10-29 10:12:59 -0700
commit81c84bd9022328127f46d0484d254848911ea198 (patch)
treecf83570345f135db80dbf89a8439e0b46a70ef60 /sysdeps/unix/sysv/linux/kernel-features.h
parentd9e8f9ec5557cc6ffcc154eafc4d2f2348df7b6b (diff)
downloadglibc-81c84bd9022328127f46d0484d254848911ea198.tar.gz
glibc-81c84bd9022328127f46d0484d254848911ea198.tar.xz
glibc-81c84bd9022328127f46d0484d254848911ea198.zip
Fix F_GETOWN on some Linux archs.
The syscall conventions on some Linux archs prevented F_GETOWN from working
correctly in some situations.  This can be rectified when using the new
F_GETOWN_EX command.
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index ff065effb5..f48e644e09 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -542,3 +542,8 @@
 # define __ASSUME_PREADV	1
 # define __ASSUME_PWRITEV	1
 #endif
+
+/* Support for F_GETOWN_EX was introduced in 2.6.32.  */
+#if __LINUX_KERNEL_VERSION >= 0x020620
+# define __ASSUME_F_GETOWN_EX	1
+#endif