diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/recvmsg.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/recvmsg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/recvmsg.c b/sysdeps/unix/sysv/linux/recvmsg.c index cd7c9ca581..952a0f2eb1 100644 --- a/sysdeps/unix/sysv/linux/recvmsg.c +++ b/sysdeps/unix/sysv/linux/recvmsg.c @@ -21,11 +21,17 @@ #include <sysdep-cancel.h> #include <socketcall.h> +#include <kernel-features.h> +#include <sys/syscall.h> ssize_t __libc_recvmsg (int fd, struct msghdr *msg, int flags) { +#ifdef __ASSUME_RECVMSG_SYSCALL + return SYSCALL_CANCEL (recvmsg, fd, msg, flags); +#else return SOCKETCALL_CANCEL (recvmsg, fd, msg, flags); +#endif } weak_alias (__libc_recvmsg, recvmsg) weak_alias (__libc_recvmsg, __recvmsg) |