Commit b8fb402e authored by James Sedgwick's avatar James Sedgwick Committed by Facebook Github Bot

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
parent ce7751a2
...@@ -16,16 +16,16 @@ ...@@ -16,16 +16,16 @@
#include <folly/detail/SocketFastOpen.h> #include <folly/detail/SocketFastOpen.h>
#include <folly/portability/Sockets.h>
#include <cerrno> #include <cerrno>
#include <cstdio>
namespace folly { namespace folly {
namespace detail { namespace detail {
#if FOLLY_ALLOW_TFO && defined(__linux__) #if FOLLY_ALLOW_TFO && defined(__linux__)
#include <netinet/tcp.h>
#include <stdio.h>
// Sometimes these flags are not present in the headers, // Sometimes these flags are not present in the headers,
// so define them if not present. // so define them if not present.
#if !defined(MSG_FASTOPEN) #if !defined(MSG_FASTOPEN)
...@@ -64,9 +64,6 @@ bool tfo_succeeded(int sockfd) { ...@@ -64,9 +64,6 @@ bool tfo_succeeded(int sockfd) {
#elif FOLLY_ALLOW_TFO && defined(__APPLE__) #elif FOLLY_ALLOW_TFO && defined(__APPLE__)
#include <netinet/tcp.h>
#include <sys/socket.h>
ssize_t tfo_sendmsg(int sockfd, const struct msghdr* msg, int flags) { ssize_t tfo_sendmsg(int sockfd, const struct msghdr* msg, int flags) {
sa_endpoints_t endpoints; sa_endpoints_t endpoints;
endpoints.sae_srcif = 0; endpoints.sae_srcif = 0;
......
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