diff options
author | Waldemar Brodkorb <wbrodkorb@conet.de> | 2018-10-20 16:25:49 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2018-10-20 16:25:49 +0200 |
commit | f2aac995e790d240b8ab8bf915e8283e8ba531f0 (patch) | |
tree | f13cc027fab0f09fb039948a3c5ef7c75a31b960 /libc/sysdeps | |
parent | e550b5c085654f3310e378821d73bccce11fa172 (diff) |
do not expose recvmmsg/sendmmsg for unsupported kernels
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/bits/kernel-features.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/kernel-features.h b/libc/sysdeps/linux/common/bits/kernel-features.h index e0195e405..f1ebe0204 100644 --- a/libc/sysdeps/linux/common/bits/kernel-features.h +++ b/libc/sysdeps/linux/common/bits/kernel-features.h @@ -461,6 +461,12 @@ # define __ASSUME_ACCEPT4 1 #endif +/* Support for the recvmmsg/sendmmsg syscall was added in 2.6.33 */ +#if __LINUX_KERNEL_VERSION >= 0x020621 +#define __ASSUME_RECVMMSG_SYSCALL 1 +#define __ASSUME_SENDMMSG_SYSCALL 1 +#endif + /* Support for the FUTEX_CLOCK_REALTIME flag was added in 2.6.29. */ #if __LINUX_KERNEL_VERSION >= 0x02061d # define __ASSUME_FUTEX_CLOCK_REALTIME 1 |