summaryrefslogtreecommitdiff
path: root/libguile/socket.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2017-02-15 21:45:17 +0100
committerAndy Wingo <wingo@pobox.com>2017-02-15 21:45:17 +0100
commit9399c1347918fb9b39ee4b1443bcc0df78ebf750 (patch)
tree9bf11de27dafef39ab79e4180e3161ad12775932 /libguile/socket.c
parent7e641595cd9b45ce7339e21c20a8ab81af9278f6 (diff)
Switch to accept4
* lib/Makefile.am: * m4/gnulib-cache.m4: * m4/gnulib-comp.m4: Switch from accept gnulib module to accept4. * libguile/socket.c (scm_accept): Use accept4.
Diffstat (limited to 'libguile/socket.c')
-rw-r--r--libguile/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/socket.c b/libguile/socket.c
index 4f2acffd7..9ddc4a21f 100644
--- a/libguile/socket.c
+++ b/libguile/socket.c
@@ -1268,7 +1268,7 @@ SCM_DEFINE (scm_accept, "accept", 1, 0, 0,
sock = SCM_COERCE_OUTPORT (sock);
SCM_VALIDATE_OPFPORT (1, sock);
fd = SCM_FPORT_FDES (sock);
- SCM_SYSCALL (newfd = accept (fd, (struct sockaddr *) &addr, &addr_size));
+ SCM_SYSCALL (newfd = accept4 (fd, (struct sockaddr *) &addr, &addr_size, 0));
if (newfd == -1)
{
if (errno == EAGAIN || errno == EWOULDBLOCK)