aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-02-27 15:54:30 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-02-27 15:54:30 +0000
commitbf8becc54bb3a666872148110d8e2d33388d4c40 (patch)
tree39509f9ebfe4c72fb27e4a8d0ff50c613d54a4a3
parent7bb9ccad9c0dceea327d7ac41a3cf4ea6d284423 (diff)
downloadglibc-bf8becc54bb3a666872148110d8e2d33388d4c40.tar.xz
glibc-bf8becc54bb3a666872148110d8e2d33388d4c40.zip
MIPS: do not declare recvmmsg and sendmmsg for !__USE_GNU.
-rw-r--r--ChangeLog.mips5
-rw-r--r--sysdeps/unix/sysv/linux/mips/bits/socket.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 3198ace743..730e42683d 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,5 +1,10 @@
2012-02-27 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/unix/sysv/linux/mips/bits/socket.h [!__USE_GNU]: Do not
+ declare recvmmsg and sendmmsg.
+
+2012-02-27 Joseph Myers <joseph@codesourcery.com>
+
* sysdeps/unix/sysv/linux/mips/bits/siginfo.h (pthread_attr_t):
Change union tag to pthread_attr_t. Only define typedef if not
already defined.
diff --git a/sysdeps/unix/sysv/linux/mips/bits/socket.h b/sysdeps/unix/sysv/linux/mips/bits/socket.h
index cfd7dd778c..eac3bcd9ed 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/socket.h
@@ -417,6 +417,7 @@ struct linger
__BEGIN_DECLS
+#ifdef __USE_GNU
/* Receive up to VLEN messages as described by VMESSAGES from socket FD.
Returns the number of bytes read or -1 for errors.
@@ -432,6 +433,7 @@ This function is a cancellation point and therefore not marked with
__THROW. */
extern int sendmmsg (int __fd, struct mmsghdr *__vmessages,
unsigned int __vlen, int __flags);
+#endif
__END_DECLS