From b0cb309635f43aa269dba0ea9925ced294926546 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 1 Jul 2014 11:57:46 +1000 Subject: MicroBlaze: Update kernel-features.h for syscalls added in 3.15 Now that the MicroBlaze 3.15 kernel has the pselect6, preadv and pwritev syscalls, this patch updates kernel-features.h so they are assumed to be present for 3.15 and later kernels. 2014-06-17 Joseph Myers * sysdeps/unix/sysv/linux/microblaze/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not undefine. [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise. [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise. Signed-off-by: David Holsgrove --- sysdeps/unix/sysv/linux/microblaze/kernel-features.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sysdeps/unix/sysv/linux/microblaze') diff --git a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h index 066c12dd4a..34b0521ffa 100644 --- a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h +++ b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h @@ -45,8 +45,10 @@ # undef __ASSUME_SET_ROBUST_LIST #endif -/* The MicroBlaze kernel does not support the pselect6, preadv and - pwritev syscalls. */ -#undef __ASSUME_PSELECT -#undef __ASSUME_PREADV -#undef __ASSUME_PWRITEV +/* Support for the pselect6, preadv and pwritev syscalls was added in + 3.15. */ +#if __LINUX_KERNEL_VERSION < 0x030f00 +# undef __ASSUME_PSELECT +# undef __ASSUME_PREADV +# undef __ASSUME_PWRITEV +#endif -- cgit 1.4.1