mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 19:30:10 +00:00
Fix __sendmmsg prototype guards
Add __USE_GNU guards on 'socket/sys/socket.h' __sendmmsg prototype.
This commit is contained in:
parent
d0276e18f3
commit
7f29694236
@ -1,3 +1,8 @@
|
|||||||
|
2014-12-11 Adhemerval Zanella <Azanella@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
|
||||||
|
prototype.
|
||||||
|
|
||||||
2014-12-11 Steve Ellcey <sellcey@imgtec.com>
|
2014-12-11 Steve Ellcey <sellcey@imgtec.com>
|
||||||
|
|
||||||
* sysdeps/mips/dl-trampoline.c: Modify switch expression to have
|
* sysdeps/mips/dl-trampoline.c: Modify switch expression to have
|
||||||
|
@ -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,
|
extern ssize_t __sendmsg (int __fd, const struct msghdr *__message,
|
||||||
int __flags) attribute_hidden;
|
int __flags) attribute_hidden;
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
extern int __sendmmsg (int __fd, struct mmsghdr *__vmessages,
|
extern int __sendmmsg (int __fd, struct mmsghdr *__vmessages,
|
||||||
unsigned int __vlen, int __flags);
|
unsigned int __vlen, int __flags);
|
||||||
libc_hidden_proto (__sendmmsg)
|
libc_hidden_proto (__sendmmsg)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Receive a message as described by MESSAGE from socket FD.
|
/* Receive a message as described by MESSAGE from socket FD.
|
||||||
Returns the number of bytes read or -1 for errors. */
|
Returns the number of bytes read or -1 for errors. */
|
||||||
|
Loading…
Reference in New Issue
Block a user