Codebase list getdns / 17d5627
Make TCP_FASTOPEN work again for linux and FreeBSD Willem Toorop 4 years ago
2 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
483483 message(WARNING "TCP Fast Open not available, continuing without.")
484484 endif ()
485485 else ()
486 check_include_file(netinet/tcp.h HAVE_NETINET_TCP_H)
486487 check_symbol_exists(TCP_FASTOPEN "sys/socket.h;netinet/tcp.h" HAVE_DECL_TCP_FASTOPEN)
487488 check_symbol_exists(TCP_FASTOPEN_CONNECT "sys/socket.h;netinet/tcp.h" HAVE_DECL_TCP_FASTOPEN_CONNECT)
488489 check_symbol_exists(MSG_FASTOPEN "sys/socket.h;netinet/tcp.h" HAVE_DECL_MSG_FASTOPEN)
489 if (NOT TCP_FASTOPEN)
490 if (NOT HAVE_DECL_TCP_FASTOPEN)
490491 message(WARNING "TCP Fast Open not available, continuing without.")
491492 endif ()
492493 endif ()
3434 #cmakedefine HAVE_NETDB_H 1
3535 #cmakedefine HAVE_ARPA_INET_H 1
3636 #cmakedefine HAVE_NETINET_IN_H 1
37 #cmakedefine HAVE_NETINET_TCP_H 1
3738 #cmakedefine HAVE_SYS_SELECT_H 1
3839 #cmakedefine HAVE_SYS_SOCKET_H 1
3940 #cmakedefine HAVE_SYS_SYSCTL_H 1
126127 #cmakedefine HAVE_DECL_SIGADDSET 1
127128 #cmakedefine HAVE_DECL_STRPTIME 1
128129
129 #cmakedefine USE_DECL_TCP_FASTOPEN 1
130 #cmakedefine USE_DECL_TCP_FASTOPEN_CONNECT 1
131 #cmakedefine USE_DECL_MSG_FASTOPEN 1
130 #cmakedefine HAVE_DECL_TCP_FASTOPEN 1
131 #cmakedefine HAVE_DECL_TCP_FASTOPEN_CONNECT 1
132 #cmakedefine HAVE_DECL_MSG_FASTOPEN 1
132133
133134 #if defined(HAVE_DECL_INET_PTON) || defined(HAVE_WIN_DECL_INET_PTON)
134135 #undef HAVE_DECL_INET_PTON
391392 #include <netinet/in.h>
392393 #endif
393394
395 #ifdef HAVE_NETINET_TCP_H
396 #include <netinet/tcp.h>
397 #endif
398
394399 #ifdef HAVE_ARPA_INET_H
395400 #include <arpa/inet.h>
396401 #endif