summaryrefslogtreecommitdiffstats
path: root/src/openvpn/syshead.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/syshead.h')
-rw-r--r--src/openvpn/syshead.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h
index b82f9e4..bca842c 100644
--- a/src/openvpn/syshead.h
+++ b/src/openvpn/syshead.h
@@ -28,11 +28,13 @@
/*
* Only include if not during configure
*/
-#ifndef PACKAGE_NAME
+#ifdef HAVE_CONFIG_H
#include "config.h"
-#include "compat.h"
+#elif defined(_MSC_VER)
+#include "config-msvc.h"
#endif
+#include "compat.h"
/* branch prediction hints */
#if defined(__GNUC__)
@@ -102,6 +104,14 @@
#include <fcntl.h>
#endif
+#ifdef HAVE_DIRECT_H
+#include <direct.h>
+#endif
+
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif
+
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif