Commit 82142aa3 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 1

Define TCPI_OPT_SYN_DATA if it isn't defined

Summary: Because it doesn't in a lot of our open-source builds.

Differential Revision: D3551445

fbshipit-source-id: 599f45f51d1cbecedd02cb2ca3ef611648986039
parent 106a2a56
...@@ -36,6 +36,10 @@ namespace detail { ...@@ -36,6 +36,10 @@ namespace detail {
#define TCP_FASTOPEN 23 #define TCP_FASTOPEN 23
#endif #endif
#if !defined(TCPI_OPT_SYN_DATA)
#define TCPI_OPT_SYN_DATA 32
#endif
ssize_t tfo_sendmsg(int sockfd, const struct msghdr* msg, int flags) { ssize_t tfo_sendmsg(int sockfd, const struct msghdr* msg, int flags) {
flags |= MSG_FASTOPEN; flags |= MSG_FASTOPEN;
return sendmsg(sockfd, msg, flags); return sendmsg(sockfd, msg, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment