summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2012-03-28 23:18:09 (GMT)
committerBen Boeckel <mathstuf@gmail.com>2012-03-28 23:18:09 (GMT)
commit228e48b20c4c2594ed889b4593902ac6c9b3e5fc (patch)
tree685e1059c98aeec93d01d468cb1d11817bae12fa
parentabd33d5e3b11ae5470f62cbce49723a4cf62870d (diff)
downloadNinja-228e48b20c4c2594ed889b4593902ac6c9b3e5fc.zip
Ninja-228e48b20c4c2594ed889b4593902ac6c9b3e5fc.tar.gz
Ninja-228e48b20c4c2594ed889b4593902ac6c9b3e5fc.tar.bz2
Include unistd.h where needed
-rw-r--r--src/build.cc1
-rw-r--r--src/build_log.cc1
-rw-r--r--src/ninja.cc1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/build.cc b/src/build.cc
index 44c1df6..a2e4f64 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -20,6 +20,7 @@
#ifdef _WIN32
#include <windows.h>
#else
+#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/termios.h>
diff --git a/src/build_log.cc b/src/build_log.cc
index fd93ea8..0cecd70 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -17,6 +17,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "build.h"
#include "graph.h"
diff --git a/src/ninja.cc b/src/ninja.cc
index 04cd771..7d020db 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -31,6 +31,7 @@
#include <windows.h>
#else
#include <getopt.h>
+#include <unistd.h>
#endif
#include "browse.h"