Blame SOURCES/glibc-rh1505492-types-10.patch

c6d234
commit 7f29694236aab000eae24f36b7989a6b774044ae
c6d234
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
c6d234
Date:   Thu Dec 11 14:54:22 2014 -0500
c6d234
c6d234
    Fix __sendmmsg prototype guards
c6d234
    
c6d234
    Add __USE_GNU guards on 'socket/sys/socket.h' __sendmmsg prototype.
c6d234
c6d234
diff --git a/include/sys/socket.h b/include/sys/socket.h
c6d234
index 9caf1bbdf5fa7782..99f60363a133cf93 100644
c6d234
--- a/include/sys/socket.h
c6d234
+++ b/include/sys/socket.h
c6d234
@@ -91,9 +91,11 @@ extern ssize_t __libc_sendmsg (int __fd, const struct msghdr *__message,
c6d234
 extern ssize_t __sendmsg (int __fd, const struct msghdr *__message,
c6d234
 			  int __flags) attribute_hidden;
c6d234
 
c6d234
+#ifdef __USE_GNU
c6d234
 extern int __sendmmsg (int __fd, struct mmsghdr *__vmessages,
c6d234
                        unsigned int __vlen, int __flags);
c6d234
 libc_hidden_proto (__sendmmsg)
c6d234
+#endif
c6d234
 
c6d234
 /* Receive a message as described by MESSAGE from socket FD.
c6d234
    Returns the number of bytes read or -1 for errors.  */