summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-06-21 18:32:02 -0400
committerGitHub <noreply@github.com>2020-06-21 18:32:02 -0400
commit580f57fe7745fcbbb5d0c4cd446ecf8001a20b62 (patch)
treebef8f6641396ad33ea698467ec950e28bd9a3081
parent8948ec2de60249deb756e02cf3c742f62f12aafe (diff)
downloadninja-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.cc2
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"