summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-11-23 22:04:37 +0000
committerChris Wilson <chris+github@qwirx.com>2014-11-23 22:04:37 +0000
commitff3e2f74c73b1575765ffb8b51a6ff8b076ca828 (patch)
tree9fbb518fbfe6ec8567680805a3343ac98b1fb53d
parent1f3fbc654f3fa7c700834cc3b94bc931ad721261 (diff)
Include getopt.h instead of box_getopt.h.
Fixes compile errors on Windows. Thanks to Kai Liebenau!
-rw-r--r--lib/win32/emu.h2
-rwxr-xr-xlib/win32/getopt_long.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/win32/emu.h b/lib/win32/emu.h
index bf408050..cd4e2f4e 100644
--- a/lib/win32/emu.h
+++ b/lib/win32/emu.h
@@ -183,7 +183,7 @@ inline int geteuid(void)
// MinGW provides a getopt implementation
#ifndef __MINGW32__
-#include "getopt.h"
+#include "box_getopt.h"
#endif // !__MINGW32__
#define timespec timeval
diff --git a/lib/win32/getopt_long.cpp b/lib/win32/getopt_long.cpp
index 941f23c1..af2833a1 100755
--- a/lib/win32/getopt_long.cpp
+++ b/lib/win32/getopt_long.cpp
@@ -66,7 +66,7 @@
#include <stdio.h>
#include <string.h>
-#include "getopt.h"
+#include "box_getopt.h"
#ifdef REPLACE_GETOPT // until end of file