git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ab63f3
)
Fix testsuite build for non-TFO platforms
author
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 19 Sep 2017 12:24:43 +0000
(13:24 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 19 Sep 2017 12:24:43 +0000
(13:24 +0100)
test/src/server.c
patch
|
blob
|
history
diff --git
a/test/src/server.c
b/test/src/server.c
index 4656b02af1b8c773674d9c926f17612099c1e69a..5af86d96f76eb4075c2b05a0de962f996456abf5 100644
(file)
--- 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);
}
printf("IPv6 socket creation failed: %s\n", strerror(errno));
exit(1);
}
-
+#ifdef TCP_FASTOPEN
if (tfo)
{
int backlog = 5;
if (tfo)
{
int backlog = 5;
@@
-306,7
+306,7
@@
else
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
&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. */
/* 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);
}
printf("IPv4 socket creation failed: %s\n", strerror(errno));
exit(1);
}
+#ifdef TCP_FASTOPEN
if (tfo)
{
int backlog = 5;
if (tfo)
{
int backlog = 5;
@@
-337,7
+338,7
@@
else
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
&backlog, sizeof(backlog)))
if (debug) printf("setsockopt TCP_FASTOPEN: %s\n", strerror(errno));
}
-
+#endif
}
}
}
}