Fix. Build if TCP_FASTOPEN
defined.
This commit is contained in:
parent
83de1e1d2f
commit
60b8e3e082
@ -30,6 +30,11 @@
|
|||||||
# define LCURL_DEFAULT_VALUE 0
|
# define LCURL_DEFAULT_VALUE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TCP_FASTOPEN
|
||||||
|
# define LCURL__TCP_FASTOPEN TCP_FASTOPEN
|
||||||
|
# undef TCP_FASTOPEN
|
||||||
|
#endif
|
||||||
|
|
||||||
OPT_ENTRY( verbose, VERBOSE, LNG, 0, LCURL_DEFAULT_VALUE )
|
OPT_ENTRY( verbose, VERBOSE, LNG, 0, LCURL_DEFAULT_VALUE )
|
||||||
OPT_ENTRY( header, HEADER, LNG, 0, LCURL_DEFAULT_VALUE )
|
OPT_ENTRY( header, HEADER, LNG, 0, LCURL_DEFAULT_VALUE )
|
||||||
OPT_ENTRY( noprogress, NOPROGRESS, LNG, 0, 1 )
|
OPT_ENTRY( noprogress, NOPROGRESS, LNG, 0, 1 )
|
||||||
@ -342,16 +347,19 @@ OPT_ENTRY( stream_weight, STREAM_WEIGHT, LNG, 0, LCUR
|
|||||||
#if LCURL_CURL_VER_GE(7,48,0)
|
#if LCURL_CURL_VER_GE(7,48,0)
|
||||||
OPT_ENTRY( tftp_no_options, TFTP_NO_OPTIONS, LNG, 0, LCURL_DEFAULT_VALUE )
|
OPT_ENTRY( tftp_no_options, TFTP_NO_OPTIONS, LNG, 0, LCURL_DEFAULT_VALUE )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LCURL_CURL_VER_GE(7,49,0)
|
#if LCURL_CURL_VER_GE(7,49,0)
|
||||||
OPT_ENTRY( tcp_fastopen, TCP_FASTOPEN, LNG, 0, LCURL_DEFAULT_VALUE )
|
OPT_ENTRY( tcp_fastopen, TCP_FASTOPEN, LNG, 0, LCURL_DEFAULT_VALUE )
|
||||||
OPT_ENTRY( connect_to, CONNECT_TO, LST, 0, LCURL_DEFAULT_VALUE )
|
OPT_ENTRY( connect_to, CONNECT_TO, LST, 0, LCURL_DEFAULT_VALUE )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LCURL_CURL_VER_GE(7,51,0)
|
#if LCURL_CURL_VER_GE(7,51,0)
|
||||||
OPT_ENTRY( keep_sending_on_error, KEEP_SENDING_ON_ERROR, LNG, 0, LCURL_DEFAULT_VALUE )
|
OPT_ENTRY( keep_sending_on_error, KEEP_SENDING_ON_ERROR, LNG, 0, LCURL_DEFAULT_VALUE )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef LCURL__TCP_FASTOPEN
|
||||||
|
# define TCP_FASTOPEN LCURL__TCP_FASTOPEN
|
||||||
|
# undef LCURL__TCP_FASTOPEN
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef OPT_ENTRY_IS_NULL
|
#ifdef OPT_ENTRY_IS_NULL
|
||||||
# undef OPT_ENTRY
|
# undef OPT_ENTRY
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user