summaryrefslogtreecommitdiff
path: root/sysdeps/stub/socketpair.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/socketpair.c')
-rw-r--r--sysdeps/stub/socketpair.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/stub/socketpair.c b/sysdeps/stub/socketpair.c
index bc9b4b50f2..938e08f50e 100644
--- a/sysdeps/stub/socketpair.c
+++ b/sysdeps/stub/socketpair.c
@@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
-#include <ansidecl.h>
#include <errno.h>
#include <sys/socket.h>
@@ -25,10 +24,13 @@ Cambridge, MA 02139, USA. */
descriptors for them in FDS[0] and FDS[1]. If PROTOCOL is zero,
one will be chosen automatically. Returns 0 on success, -1 for errors. */
int
-DEFUN(socketpair, (domain, type, protocol, fds),
- int domain AND int type AND int protocol AND int fds[2])
+socketpair (domain, type, protocol, fds)
+ int domain;
+ int type;
+ int protocol;
+ int fds[2];
{
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return -1;
}