From: James Sedgwick Date: Fri, 12 May 2017 09:44:24 +0000 (-0700) Subject: include folly/portability/Sockets.h instead of netinet/tcp.h X-Git-Tag: v2017.05.15.00~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b8fb402e792558c3baed5386000e3f09d9f2350e;p=folly.git 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 --- 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;