summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index af80d5c..0189b3e 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -15,8 +15,12 @@
#include "ninja.h"
#include <errno.h>
+#ifdef WIN32
+#include "getopt.h"
+#else
#include <getopt.h>
#include <limits.h>
+#endif
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>