summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-09-19 13:24:43 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2017-09-19 13:24:43 +0100
commit4043ef1cec143692ca271bf868abf01d62b0d0d1 (patch)
treed909c3686feeae64e8debde85e5c43ffa41b1925 /test
parent0ab63f3dea522591218c0d65c78a686b7fa64db6 (diff)
Fix testsuite build for non-TFO platforms
Diffstat (limited to 'test')
-rw-r--r--test/src/server.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/src/server.c b/test/src/server.c
index 4656b02af..5af86d96f 100644
--- a/test/src/server.c
+++ b/test/src/server.c
@@ -298,7 +298,7 @@ else
printf("IPv6 socket creation failed: %s\n", strerror(errno));
exit(1);
}
-
+#ifdef TCP_FASTOPEN
if (tfo)
{
int backlog = 5;
@@ -306,7 +306,7 @@ else
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
-
+#endif
/* If this is an IPv6 wildcard socket, set IPV6_V6ONLY if that option is
available. */
@@ -330,6 +330,7 @@ else
printf("IPv4 socket creation failed: %s\n", strerror(errno));
exit(1);
}
+#ifdef TCP_FASTOPEN
if (tfo)
{
int backlog = 5;
@@ -337,7 +338,7 @@ else
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
-
+#endif
}
}