Switch uses of <sys/file.h> to <folly/portability/SysFile.h>
authorChristopher Dykes <cdykes@fb.com>
Mon, 30 May 2016 23:05:10 +0000 (16:05 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Mon, 30 May 2016 23:09:18 +0000 (16:09 -0700)
Summary: Diff #2 of 14.

Reviewed By: mzlee

Differential Revision: D3115972

fbshipit-source-id: c75cbc95f37e8f2c2bf81311a8ca08ee766fc107

folly/File.cpp
folly/FileUtil.cpp

index 6c2d550e0b3a4702c86a7cfe3ffd68fe4c1a5603..091e0103e901067887615fceea3804f7843fb82a 100644 (file)
 
 #include <fcntl.h>
 #include <unistd.h>
-#include <sys/file.h>
 
 #include <folly/Exception.h>
 #include <folly/FileUtil.h>
 #include <folly/Format.h>
 #include <folly/ScopeGuard.h>
+#include <folly/portability/SysFile.h>
 
 #include <system_error>
 
index f814ddad1c0fa0a95cfbfec7de5afa7f79ddcdcd..e73b593602a7a42c2e1e62bb1fdf5eb9147310ef 100644 (file)
 #ifdef __APPLE__
 #include <fcntl.h>
 #endif
-#include <sys/file.h>
 #include <sys/socket.h>
 
 #include <folly/detail/FileUtilDetail.h>
+#include <folly/portability/SysFile.h>
 
 namespace folly {