Really fix the clang warning in Format-inl.h
[folly.git] / folly / File.h
index 39136d4a5228fbcce72dd46ab71001b89f33a3e9..2183609b97ac7b67831762de7aaeb0197e7b3de6 100644 (file)
@@ -22,6 +22,8 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include <folly/Portability.h>
+
 namespace folly {
 
 /**
@@ -43,7 +45,7 @@ class File {
   /**
    * Open and create a file object.  Throws on error.
    */
-  explicit File(const char* name, int flags = O_RDONLY, mode_t mode = 0644);
+  explicit File(const char* name, int flags = O_RDONLY, mode_t mode = 0666);
 
   ~File();