diff options
author | Heiko Hund <heiko.hund@sophos.com> | 2012-02-16 18:30:39 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-02-16 19:36:27 +0100 |
commit | d0109cbf459409a84963668c78f444c97ec2b349 (patch) | |
tree | 7739e8d7f4def69f02b9a1f4324737acc5ea0c0f | |
parent | 76a3c405549bf02902846a9bd0e7d0f3a25a5b4d (diff) | |
download | openvpn-d0109cbf459409a84963668c78f444c97ec2b349.tar.gz openvpn-d0109cbf459409a84963668c78f444c97ec2b349.tar.xz openvpn-d0109cbf459409a84963668c78f444c97ec2b349.zip |
do not use mode_t on Windows
The MSVC headers do not define mode_t. open() uses an int for
the permissions instead. Fixes building with the MSVC based
buildsystem.
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r-- | misc.h | 2 | ||||
-rw-r--r-- | win32.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -158,7 +158,7 @@ openvpn_fopen (const char *path, const char *mode) #endif #ifdef WIN32 -int openvpn_open (const char *path, int flags, mode_t mode); +int openvpn_open (const char *path, int flags, int mode); #else static inline int openvpn_open (const char *path, int flags, mode_t mode) @@ -1064,7 +1064,7 @@ openvpn_fopen (const char *path, const char *mode) } int -openvpn_open (const char *path, int flags, mode_t mode) +openvpn_open (const char *path, int flags, int mode) { struct gc_arena gc = gc_new (); int fd = _wopen (wide_string (path, &gc), flags, mode); |