From 8b2c706a9d0365793c88b044c69b78724b3078af Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 21 Jul 2021 11:42:31 +0200 Subject: socket: Add time64 alias for sendmmsg Reviewed-by: Lukasz Majewski Reviewed-by: Adhemerval Zanella --- socket/sys/socket.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'socket') diff --git a/socket/sys/socket.h b/socket/sys/socket.h index 5577e75b80..d02d976bb5 100644 --- a/socket/sys/socket.h +++ b/socket/sys/socket.h @@ -179,9 +179,21 @@ extern ssize_t sendmsg (int __fd, const struct msghdr *__message, This function is a cancellation point and therefore not marked with __THROW. */ +# ifndef __USE_TIME_BITS64 extern int sendmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags); -#endif +# else +# ifdef __REDIRECT +extern int __REDIRECT (sendmmsg, (int __fd, struct mmsghdr *__vmessages, + unsigned int __vlen, int __flags), + __sendmmsg64); +# else +extern int __sendmmsg64 (int __fd, struct mmsghdr *__vmessages, + unsigned int __vlen, int __flags); +# define sendmmsg __sendmmsg64 +# endif +# endif /* __USE_TIME_BITS64 */ +#endif /* __USE_GNU */ /* Receive a message as described by MESSAGE from socket FD. Returns the number of bytes read or -1 for errors. -- cgit 1.4.1