about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/socketpair.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5bab6139f7..09ff85f016 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
+
+	* sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
+	first member of struct sv in syscall macro.
+
 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #14912]
diff --git a/sysdeps/unix/sysv/linux/socketpair.c b/sysdeps/unix/sysv/linux/socketpair.c
index 5c68970e6f..d40b5271c7 100644
--- a/sysdeps/unix/sysv/linux/socketpair.c
+++ b/sysdeps/unix/sysv/linux/socketpair.c
@@ -27,7 +27,7 @@ int
 __socketpair (int domain, int type, int protocol, int sv[2])
 {
 #ifdef __ASSUME_SOCKETPAIR_SYSCALL
-  return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, sv);
+  return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, &sv[0]);
 #else
   return SOCKETCALL (socketpair, domain, type, protocol, sv);
 #endif