Commit b6b2635e authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 6

Include <folly/portability/Fcntl.h> where needed

Summary: Diff #9 of 14.

Reviewed By: mzlee

Differential Revision: D3262436

fbshipit-source-id: 60c5df03e91163c651bc6e5e0d38ba8b46b8c723
parent f5c41eb3
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
#include <folly/File.h> #include <folly/File.h>
#include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <folly/Exception.h> #include <folly/Exception.h>
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/SysFile.h> #include <folly/portability/SysFile.h>
#include <system_error> #include <system_error>
......
...@@ -17,12 +17,10 @@ ...@@ -17,12 +17,10 @@
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
#include <cerrno> #include <cerrno>
#ifdef __APPLE__
#include <fcntl.h>
#endif
#include <sys/socket.h> #include <sys/socket.h>
#include <folly/detail/FileUtilDetail.h> #include <folly/detail/FileUtilDetail.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/SysFile.h> #include <folly/portability/SysFile.h>
namespace folly { namespace folly {
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
#include <folly/detail/SocketFastOpen.h> #include <folly/detail/SocketFastOpen.h>
#include <folly/io/async/EventBase.h> #include <folly/io/async/EventBase.h>
#include <folly/io/async/NotificationQueue.h> #include <folly/io/async/NotificationQueue.h>
#include <folly/portability/Fcntl.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <string.h> #include <string.h>
#include <sys/socket.h> #include <sys/socket.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <folly/io/async/EventHandler.h> #include <folly/io/async/EventHandler.h>
#include <folly/SocketAddress.h> #include <folly/SocketAddress.h>
#include <folly/io/IOBuf.h> #include <folly/io/IOBuf.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/SysUio.h> #include <folly/portability/SysUio.h>
#include <poll.h> #include <poll.h>
...@@ -27,7 +28,6 @@ ...@@ -27,7 +28,6 @@
#include <limits.h> #include <limits.h>
#include <unistd.h> #include <unistd.h>
#include <thread> #include <thread>
#include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
#include <folly/io/async/EventBase.h> #include <folly/io/async/EventBase.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/portability/Fcntl.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h>
// Due to the way kernel headers are included, this may or may not be defined. // Due to the way kernel headers are included, this may or may not be defined.
// Number pulled from 3.10 kernel headers. // Number pulled from 3.10 kernel headers.
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#pragma once #pragma once
#include <fcntl.h>
#include <poll.h> #include <poll.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
...@@ -36,6 +35,7 @@ ...@@ -36,6 +35,7 @@
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/SpinLock.h> #include <folly/SpinLock.h>
#include <folly/portability/Fcntl.h>
#include <glog/logging.h> #include <glog/logging.h>
......
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