Support fchmod and include the correct portability headers for FileUtil
authorChristopher Dykes <cdykes@fb.com>
Thu, 22 Dec 2016 03:38:12 +0000 (19:38 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Dec 2016 03:47:57 +0000 (19:47 -0800)
commitdf148cbad04e4d4fe65298a517793e65403d7fc4
tree8e9904415a0fe68ad603aa588856549914af0973
parent2c45faefef3940aa6ebccc1075ccb641d8ee7798
Support fchmod and include the correct portability headers for FileUtil

Summary: `FileUtil.cpp` uses `fchmod`, which Windows doesn't have, so implement it and also include the correct portability headers for the use of `mkstemp` and now `fchmod` as well.

Reviewed By: yfeldblum

Differential Revision: D4360650

fbshipit-source-id: 300163689c54574548e7bf274a56264714d216ed
folly/FileUtil.cpp
folly/portability/SysStat.cpp
folly/portability/SysStat.h