]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Enable access() when building in Visual Studio
authorDavid Sommerseth <davids@redhat.com>
Thu, 8 Dec 2011 11:38:57 +0000 (12:38 +0100)
committerDavid Sommerseth <davids@redhat.com>
Tue, 10 Jan 2012 18:50:15 +0000 (19:50 +0100)
commita4234e1e26693e8fe6a67eea5824ef02d11c825e
treebd731a87a14d2e99763b2feddb23fbb674df7f41
parentec302f7061b7ab4dd21bdac77dd115e75b50cbc0
Enable access() when building in Visual Studio

Visual Studio does not enable certiain standard Unix functions,
such as access().  By defining _CRT_NONSTDC_NO_WARNINGS and
_CRT_SECURE_NO_WARNINGS, these functions are enabled.

This patch also adds a ./configure check for access() as well,
in case this needs to be implemented on other platforms lacking
this feature.  Which is why HAVE_ACCESS is defined in win/config.h.in

Thanks to Alon Bar-Lev for helping solving this.

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
URL: http://thread.gmane.org/gmane.network.openvpn.devel/5179/focus=5200
configure.ac
options.c
win/config.h.in
win/msvc.mak.in