From: Heiko Hund <heiko.hund@...1489...>
To: openvpn-devel@lists.sourceforge.net
Subject: [Openvpn-devel] [PATCH 2/4] do not use mode_t on Windows
Date: Thu, 16 Feb 2012 18:30:39 +0100 [thread overview]
Message-ID: <1329413441-22538-3-git-send-email-heiko.hund@...1489...> (raw)
In-Reply-To: <1329413441-22538-1-git-send-email-heiko.hund@...1489...>
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@...1489...>
---
misc.h | 2 +-
win32.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/misc.h b/misc.h
index 8c0bae1..e7a0b55 100644
--- a/misc.h
+++ b/misc.h
@@ -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)
diff --git a/win32.c b/win32.c
index 5b38918..a8f4ed9 100644
--- a/win32.c
+++ b/win32.c
@@ -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);
--
1.7.5.4
next prev parent reply other threads:[~2012-02-16 17:30 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 17:30 [Openvpn-devel] MSVC fixes Heiko Hund
2012-02-16 17:30 ` [Openvpn-devel] [PATCH 1/4] replace check for TARGET_WIN32 with WIN32 Heiko Hund
2012-02-16 18:23 ` Gert Doering
2012-02-16 17:30 ` Heiko Hund [this message]
2012-02-16 18:26 ` [Openvpn-devel] [PATCH 2/4] do not use mode_t on Windows Gert Doering
2012-02-16 18:34 ` Alon Bar-Lev
2012-02-17 9:39 ` Heiko Hund
2012-02-17 9:56 ` Alon Bar-Lev
2012-02-16 17:30 ` [Openvpn-devel] [PATCH 3/4] use the underscore version of stat " Heiko Hund
2012-02-16 18:29 ` Gert Doering
2012-02-16 18:47 ` [Openvpn-devel] [PATCH v2] " David Sommerseth
2012-02-16 18:51 ` Gert Doering
2012-02-16 18:53 ` Alon Bar-Lev
2012-02-16 17:30 ` [Openvpn-devel] [PATCH 4/4] make MSVC link against shell32 as well Heiko Hund
2012-02-16 17:47 ` Gert Doering
2012-02-16 18:37 ` Alon Bar-Lev
2012-02-17 9:51 ` Heiko Hund
2012-02-17 9:55 ` Alon Bar-Lev
2012-03-24 20:31 ` [Openvpn-devel] [PATCH] cleanup: windows: convert argv (UCS-2 to UTF-8) at earliest Alon Bar-Lev
2012-04-02 11:39 ` Alon Bar-Lev
2012-04-27 8:54 `
2012-04-27 8:59 ` Alon Bar-Lev
2012-04-27 11:13 `
2012-04-27 11:24 ` Alon Bar-Lev
2012-04-27 9:18 ` Heiko Hund
2012-04-27 11:15 `
2012-04-27 11:55 `
2012-04-27 11:59 `
2012-04-27 12:15 ` Alon Bar-Lev
2012-05-02 9:18 ` Alon Bar-Lev
2012-05-03 7:26 ` David Sommerseth
2012-05-03 7:41 ` Alon Bar-Lev
2012-05-03 10:53 `
2012-05-03 17:47 ` Alon Bar-Lev
2012-06-26 10:20 ` Alon Bar-Lev
2012-06-29 8:11 ` David Sommerseth
2012-02-17 10:14 ` [Openvpn-devel] MSVC fixes David Sommerseth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329413441-22538-3-git-send-email-heiko.hund@...1489... \
--to=openvpn-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.