diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2012-02-29 22:12:12 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-03-22 22:53:39 +0100 |
commit | 4b1a82db0975088dbfe69c2a97f0a96ef972b2a4 (patch) | |
tree | fc61e38d86d9fe0898e8c427e7f3f2cf4d464529 /src/openvpn/syshead.h | |
parent | 709f7a1f73baade82f07146273d31d53007f394d (diff) | |
download | openvpn-4b1a82db0975088dbfe69c2a97f0a96ef972b2a4.tar.gz openvpn-4b1a82db0975088dbfe69c2a97f0a96ef972b2a4.tar.xz openvpn-4b1a82db0975088dbfe69c2a97f0a96ef972b2a4.zip |
build: win-msvc: msbuild format
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/syshead.h')
-rw-r--r-- | src/openvpn/syshead.h | 14 |
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 |