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/inet/socketcalls.c | |
parent | e550b5c085654f3310e378821d73bccce11fa172 (diff) |
do not expose recvmmsg/sendmmsg for unsupported kernels
Diffstat (limited to 'libc/inet/socketcalls.c')
-rw-r--r-- | libc/inet/socketcalls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/inet/socketcalls.c b/libc/inet/socketcalls.c index 1b92609d0..edb5ab87e 100644 --- a/libc/inet/socketcalls.c +++ b/libc/inet/socketcalls.c @@ -8,6 +8,7 @@ #include <sys/syscall.h> #include <sys/socket.h> #include <cancel.h> +#include <bits/kernel-features.h> #ifdef __NR_socketcall /* Various socketcall numbers */ @@ -267,6 +268,7 @@ lt_libc_hidden(recvmsg) #endif #ifdef L_recvmmsg +#ifdef __ASSUME_RECVMMSG_SYSCALL static ssize_t __NC(recvmmsg)(int sockfd, struct mmsghdr *msg, size_t vlen, int flags, struct timespec *tmo) { @@ -289,6 +291,7 @@ CANCELLABLE_SYSCALL(ssize_t, recvmmsg, (sockfd, msg, vlen, flags, tmo)) lt_libc_hidden(recvmmsg) #endif +#endif #ifdef L_send static ssize_t __NC(send)(int sockfd, const void *buffer, size_t len, int flags) @@ -332,6 +335,7 @@ lt_libc_hidden(sendmsg) #endif #ifdef L_sendmmsg +#ifdef __ASSUME_SENDMMSG_SYSCALL static ssize_t __NC(sendmmsg)(int sockfd, struct mmsghdr *msg, size_t vlen, int flags) { @@ -352,6 +356,7 @@ CANCELLABLE_SYSCALL(ssize_t, sendmmsg, (sockfd, msg, vlen, flags)) lt_libc_hidden(sendmmsg) #endif +#endif #ifdef L_sendto ssize_t __NC(sendto)(int sockfd, const void *buffer, size_t len, int flags, |