Include the fcntl.h portability header where it's needed
authorChristopher Dykes <cdykes@fb.com>
Thu, 4 Aug 2016 17:50:19 +0000 (10:50 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Thu, 4 Aug 2016 17:54:01 +0000 (10:54 -0700)
Summary: There are a few places that need this, so make it so.

Reviewed By: yfeldblum

Differential Revision: D3667234

fbshipit-source-id: 84c16e1b036d9c2afddf03aa84c43210c5672f0a

folly/FileUtil.h
folly/experimental/test/TestUtilTest.cpp
folly/test/FileTest.cpp

index 0ab3af9a50f6d5e6e1ece681d41fb2566ce1e081..0c23cd96a3377d300bb3698185375971b0e4bfa7 100644 (file)
@@ -19,6 +19,7 @@
 #include <folly/Conv.h>
 #include <folly/Portability.h>
 #include <folly/ScopeGuard.h>
+#include <folly/portability/Fcntl.h>
 #include <folly/portability/SysUio.h>
 #include <folly/portability/Unistd.h>
 
@@ -26,7 +27,6 @@
 #include <limits>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <fcntl.h>
 
 namespace folly {
 
index 845d96fdae5713a4df01ac94c111c2355118a957..c61d4432f1aff01fa5c977c447a0b4b12123b6fa 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <fcntl.h>
 
 #include <system_error>
 
@@ -28,6 +27,7 @@
 
 #include <folly/Memory.h>
 #include <folly/portability/Environment.h>
+#include <folly/portability/Fcntl.h>
 
 using namespace folly;
 using namespace folly::test;
index d7ac2a485151a428da503ee2ea042e708e0e0817..290c53da55e62ad0ff3c7b21926dd42db62ae09f 100644 (file)
@@ -17,6 +17,7 @@
 #include <folly/File.h>
 
 #include <folly/String.h>
+#include <folly/portability/Fcntl.h>
 
 #include <gtest/gtest.h>