]> git.ipfire.org Git - thirdparty/openvpn.git/commit
use the underscore version of stat on Windows
authorHeiko Hund <heiko.hund@sophos.com>
Thu, 16 Feb 2012 17:30:40 +0000 (18:30 +0100)
committerDavid Sommerseth <davids@redhat.com>
Fri, 17 Feb 2012 10:01:10 +0000 (11:01 +0100)
commita13cd253ca1ce987e4feca7d80bd19ff749f7787
tree028f9f190c244ce45a64273f8d9d04f9de0ad5ed
parentd0109cbf459409a84963668c78f444c97ec2b349
use the underscore version of stat on Windows

MSVC does not know wstat(). Instead _wstat() must be used here.
Unfortunately _wstat() takes a 'struct _stat'. A type 'stat_t' is
introduced to handle this situation in a portable way.

[v2: Use openvpn_stat_t instead of stat_t (David Sommerseth)]

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
misc.h
pf.c
win32.c