From: Adhemerval Zanella Date: Thu, 11 Dec 2014 19:54:22 +0000 (-0500) Subject: Fix __sendmmsg prototype guards X-Git-Tag: glibc-2.21~249 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f29694236aab000eae24f36b7989a6b774044ae;p=thirdparty%2Fglibc.git Fix __sendmmsg prototype guards Add __USE_GNU guards on 'socket/sys/socket.h' __sendmmsg prototype. --- diff --git a/ChangeLog b/ChangeLog index 31a63e3f2fd..61ac73d4b94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-12-11 Adhemerval Zanella + + * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function + prototype. + 2014-12-11 Steve Ellcey * sysdeps/mips/dl-trampoline.c: Modify switch expression to have diff --git a/include/sys/socket.h b/include/sys/socket.h index 9caf1bbdf5f..99f60363a13 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -91,9 +91,11 @@ extern ssize_t __libc_sendmsg (int __fd, const struct msghdr *__message, extern ssize_t __sendmsg (int __fd, const struct msghdr *__message, int __flags) attribute_hidden; +#ifdef __USE_GNU extern int __sendmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags); libc_hidden_proto (__sendmmsg) +#endif /* Receive a message as described by MESSAGE from socket FD. Returns the number of bytes read or -1 for errors. */