Skip to content

Commit 60b8e3e

Browse files
committed
Fix. Build if TCP_FASTOPEN defined.
1 parent 83de1e1 commit 60b8e3e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/lcopteasy.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
# define LCURL_DEFAULT_VALUE 0
3131
#endif
3232

33+
#ifdef TCP_FASTOPEN
34+
# define LCURL__TCP_FASTOPEN TCP_FASTOPEN
35+
# undef TCP_FASTOPEN
36+
#endif
37+
3338
OPT_ENTRY( verbose, VERBOSE, LNG, 0, LCURL_DEFAULT_VALUE )
3439
OPT_ENTRY( header, HEADER, LNG, 0, LCURL_DEFAULT_VALUE )
3540
OPT_ENTRY( noprogress, NOPROGRESS, LNG, 0, 1 )
@@ -342,16 +347,19 @@ OPT_ENTRY( stream_weight, STREAM_WEIGHT, LNG, 0, LCUR
342347
#if LCURL_CURL_VER_GE(7,48,0)
343348
OPT_ENTRY( tftp_no_options, TFTP_NO_OPTIONS, LNG, 0, LCURL_DEFAULT_VALUE )
344349
#endif
345-
346350
#if LCURL_CURL_VER_GE(7,49,0)
347351
OPT_ENTRY( tcp_fastopen, TCP_FASTOPEN, LNG, 0, LCURL_DEFAULT_VALUE )
348352
OPT_ENTRY( connect_to, CONNECT_TO, LST, 0, LCURL_DEFAULT_VALUE )
349353
#endif
350-
351354
#if LCURL_CURL_VER_GE(7,51,0)
352355
OPT_ENTRY( keep_sending_on_error, KEEP_SENDING_ON_ERROR, LNG, 0, LCURL_DEFAULT_VALUE )
353356
#endif
354357

358+
#ifdef LCURL__TCP_FASTOPEN
359+
# define TCP_FASTOPEN LCURL__TCP_FASTOPEN
360+
# undef LCURL__TCP_FASTOPEN
361+
#endif
362+
355363
#ifdef OPT_ENTRY_IS_NULL
356364
# undef OPT_ENTRY
357365
#endif

0 commit comments

Comments
 (0)