blob: 71c6f62076b2a7b57a07d439ad52694cac7c521a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- gsoap/stdsoap2.c.orig 2016-04-03 01:33:31 UTC
+++ gsoap/stdsoap2.c
@@ -5396,6 +5396,9 @@ soap_bind(struct soap *soap, const char
}
#endif
#ifdef TCP_FASTOPEN
+ #ifndef SOL_TCP
+ #define SOL_TCP IPPROTO_TCP
+ #endif
if (!(soap->omode & SOAP_IO_UDP) && setsockopt(soap->master, IPPROTO_TCP, TCP_FASTOPEN, (char*)&set, sizeof(int)))
{ /* silently ignore */
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "setsockopt TCP_FASTOPEN failed in soap_bind()\n"));
|