summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-04-14 21:33:19 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-04-14 21:33:20 +0300
commitfacc875f5aeb9049326e3e5cbf583c84a026c6f3 (patch)
treed709666fdb8f741478632e997236564a70f20eca /tests
parent2efcc5d0aed54f6510f2808f3b0b3e1be50d5baa (diff)
downloadgnutls-facc875f5aeb9049326e3e5cbf583c84a026c6f3.tar.gz
Remove SOCK_CLOEXEC from socket() call.
That allows compilation in systems where this flag doesn't exist. Resolves #7
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.c b/tests/utils.c
index e785fb5424..5a7c6c036c 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -188,7 +188,7 @@ static int udp_socket(void)
};
int fd;
- fd = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
+ fd = socket(AF_INET, SOCK_DGRAM, 0);
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&on, sizeof(on));
#if defined(SO_REUSEPORT)
setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, (char*)&on, sizeof(on));