aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorMarc Schink <openocd-dev@marcschink.de>2017-08-21 20:56:43 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2017-10-03 11:18:20 +0100
commit1ab0303dbc6d00f8fd0036170dd7a10b32fc8713 (patch)
tree5d55037496383eebef62e4407a912d4d0654e77d /src/helper
parent83772f32ad0f46d9c21485178c112cc832449a3c (diff)
downloadriscv-openocd-1ab0303dbc6d00f8fd0036170dd7a10b32fc8713.zip
riscv-openocd-1ab0303dbc6d00f8fd0036170dd7a10b32fc8713.tar.gz
riscv-openocd-1ab0303dbc6d00f8fd0036170dd7a10b32fc8713.tar.bz2
helper/options: Add missing #include for MinGW and MSYS2
Change-Id: I3bb295f52706b641661241e3e047306811ca915e Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/4201 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper/options.c b/src/helper/options.c
index 1cfa553..12755e0 100644
--- a/src/helper/options.c
+++ b/src/helper/options.c
@@ -37,6 +37,9 @@
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
+#if IS_WIN32 && !IS_CYGWIN
+#include <windows.h>
+#endif
static int help_flag, version_flag;