aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Host/HostGetOpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Host/HostGetOpt.h')
-rw-r--r--include/lldb/Host/HostGetOpt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/lldb/Host/HostGetOpt.h b/include/lldb/Host/HostGetOpt.h
index f4b2c87be230..761c1a118600 100644
--- a/include/lldb/Host/HostGetOpt.h
+++ b/include/lldb/Host/HostGetOpt.h
@@ -10,11 +10,15 @@
#ifndef _MSC_VER
+#ifdef _WIN32
+#define _BSD_SOURCE // Required so that getopt.h defines optreset
+#endif
+
#include <unistd.h>
#include <getopt.h>
#else
-#include <lldb/Host/windows/GetOptInc.h>
+#include <lldb/Host/windows/getopt/GetOptInc.h>
#endif