|
30 | 30 | # define LCURL_DEFAULT_VALUE 0 |
31 | 31 | #endif |
32 | 32 |
|
| 33 | +#ifdef TCP_FASTOPEN |
| 34 | +# define LCURL__TCP_FASTOPEN TCP_FASTOPEN |
| 35 | +# undef TCP_FASTOPEN |
| 36 | +#endif |
| 37 | + |
33 | 38 | OPT_ENTRY( verbose, VERBOSE, LNG, 0, LCURL_DEFAULT_VALUE ) |
34 | 39 | OPT_ENTRY( header, HEADER, LNG, 0, LCURL_DEFAULT_VALUE ) |
35 | 40 | OPT_ENTRY( noprogress, NOPROGRESS, LNG, 0, 1 ) |
@@ -342,16 +347,19 @@ OPT_ENTRY( stream_weight, STREAM_WEIGHT, LNG, 0, LCUR |
342 | 347 | #if LCURL_CURL_VER_GE(7,48,0) |
343 | 348 | OPT_ENTRY( tftp_no_options, TFTP_NO_OPTIONS, LNG, 0, LCURL_DEFAULT_VALUE ) |
344 | 349 | #endif |
345 | | - |
346 | 350 | #if LCURL_CURL_VER_GE(7,49,0) |
347 | 351 | OPT_ENTRY( tcp_fastopen, TCP_FASTOPEN, LNG, 0, LCURL_DEFAULT_VALUE ) |
348 | 352 | OPT_ENTRY( connect_to, CONNECT_TO, LST, 0, LCURL_DEFAULT_VALUE ) |
349 | 353 | #endif |
350 | | - |
351 | 354 | #if LCURL_CURL_VER_GE(7,51,0) |
352 | 355 | OPT_ENTRY( keep_sending_on_error, KEEP_SENDING_ON_ERROR, LNG, 0, LCURL_DEFAULT_VALUE ) |
353 | 356 | #endif |
354 | 357 |
|
| 358 | +#ifdef LCURL__TCP_FASTOPEN |
| 359 | +# define TCP_FASTOPEN LCURL__TCP_FASTOPEN |
| 360 | +# undef LCURL__TCP_FASTOPEN |
| 361 | +#endif |
| 362 | + |
355 | 363 | #ifdef OPT_ENTRY_IS_NULL |
356 | 364 | # undef OPT_ENTRY |
357 | 365 | #endif |
|
0 commit comments