diff options
author | Nico Weber <thakis@chromium.org> | 2020-06-21 18:32:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-21 18:32:02 -0400 |
commit | 580f57fe7745fcbbb5d0c4cd446ecf8001a20b62 (patch) | |
tree | bef8f6641396ad33ea698467ec950e28bd9a3081 | |
parent | 8948ec2de60249deb756e02cf3c742f62f12aafe (diff) | |
download | ninja-580f57fe7745fcbbb5d0c4cd446ecf8001a20b62.tar.gz |
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.
-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" |