From b8fb402e792558c3baed5386000e3f09d9f2350e Mon Sep 17 00:00:00 2001 From: James Sedgwick Date: Fri, 12 May 2017 02:44:24 -0700 Subject: [PATCH] include folly/portability/Sockets.h instead of netinet/tcp.h Summary: To satisfy internal linter Reviewed By: yfeldblum Differential Revision: D4957870 fbshipit-source-id: 191ac768790fbd8cc8a4d24036c016644ff1d125 --- folly/detail/SocketFastOpen.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/folly/detail/SocketFastOpen.cpp b/folly/detail/SocketFastOpen.cpp index 465a07f9..a6385496 100644 --- a/folly/detail/SocketFastOpen.cpp +++ b/folly/detail/SocketFastOpen.cpp @@ -16,16 +16,16 @@ #include +#include + #include +#include namespace folly { namespace detail { #if FOLLY_ALLOW_TFO && defined(__linux__) -#include -#include - // Sometimes these flags are not present in the headers, // so define them if not present. #if !defined(MSG_FASTOPEN) @@ -64,9 +64,6 @@ bool tfo_succeeded(int sockfd) { #elif FOLLY_ALLOW_TFO && defined(__APPLE__) -#include -#include - ssize_t tfo_sendmsg(int sockfd, const struct msghdr* msg, int flags) { sa_endpoints_t endpoints; endpoints.sae_srcif = 0; -- 2.34.1