Re: [Openvpn-devel] [PATCH] Add a wrapper for access() when compiling via Visual Studio

2011-12-08 Thread Alon Bar-Lev
On Thu, Dec 8, 2011 at 12:57 PM, Alon Bar-Lev wrote: > On Thu, Dec 8, 2011 at 12:51 PM, Alon Bar-Lev wrote: >> On Thu, Dec 8, 2011 at 12:44 PM, David Sommerseth >> wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>>

Re: [Openvpn-devel] [PATCH] Add a wrapper for access() when compiling via Visual Studio

2011-12-08 Thread Alon Bar-Lev
On Thu, Dec 8, 2011 at 12:51 PM, Alon Bar-Lev wrote: > On Thu, Dec 8, 2011 at 12:44 PM, David Sommerseth > wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 08/12/11 08:44, Alon Bar-Lev wrote: >>> On Thu, Dec 8, 2011 at 2:13

Re: [Openvpn-devel] [PATCH] Add a wrapper for access() when compiling via Visual Studio

2011-12-08 Thread Alon Bar-Lev
On Thu, Dec 8, 2011 at 12:44 PM, David Sommerseth wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/12/11 08:44, Alon Bar-Lev wrote: >> On Thu, Dec 8, 2011 at 2:13 AM, David Sommerseth >> wrote: >>> +/* The POSIX access()

Re: [Openvpn-devel] [PATCH] Add a wrapper for access() when compiling via Visual Studio

2011-12-08 Thread David Sommerseth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/12/11 08:44, Alon Bar-Lev wrote: > On Thu, Dec 8, 2011 at 2:13 AM, David Sommerseth > wrote: >> +/* The POSIX access() function is called via _access() on Windows, >> + * defined in io.h + */ +#define HAVE_ACCESS 1 +#define

Re: [Openvpn-devel] [PATCH] Add a wrapper for access() when compiling via Visual Studio

2011-12-08 Thread Alon Bar-Lev
On Thu, Dec 8, 2011 at 2:13 AM, David Sommerseth wrote: > +/* The POSIX access() function is called via _access() on Windows, > + * defined in io.h > + */ > +#define HAVE_ACCESS 1 > +#define access _access > +#pragma warning(disable : 4996) /* Avoid Visual Studio to complain

[Openvpn-devel] [PATCH] Add a wrapper for access() when compiling via Visual Studio

2011-12-08 Thread David Sommerseth
This adds the access() function as a wrapper for _access() to be able to compile OpenVPN via Visual Studio. It also adds the required macros which used in POSIX environments (R_OK, W_OK, X_OK, F_OK). This patch will also disable a compiler warning, C4996, as the compiler complains about the