diff options
author | Nico Weber <thakis@chromium.org> | 2020-06-21 22:32:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-21 22:32:02 (GMT) |
commit | 580f57fe7745fcbbb5d0c4cd446ecf8001a20b62 (patch) | |
tree | bef8f6641396ad33ea698467ec950e28bd9a3081 /src/disk_interface.cc | |
parent | 8948ec2de60249deb756e02cf3c742f62f12aafe (diff) | |
download | Ninja-580f57fe7745fcbbb5d0c4cd446ecf8001a20b62.zip Ninja-580f57fe7745fcbbb5d0c4cd446ecf8001a20b62.tar.gz Ninja-580f57fe7745fcbbb5d0c4cd446ecf8001a20b62.tar.bz2 |
Include unistd.h in disk_interface.cc
stat() needs unistd.h in addition to sys/stat.h and sys/types.h per POSIX.
At least one (hobby) OS does need unistd.h, so add an include for it.
Diffstat (limited to 'src/disk_interface.cc')
-rw-r--r-- | src/disk_interface.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc index dc297c4..594bc51 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -26,6 +26,8 @@ #include <sstream> #include <windows.h> #include <direct.h> // _mkdir +#else +#include <unistd.h> #endif #include "metrics.h" |