From: Etienne Dechamps Date: Sat, 14 Mar 2015 16:07:54 +0000 (+0000) Subject: Fix invalid getuid() call on Windows. X-Git-Tag: release-1.1pre12~188^2~1 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=4989362300f800a6f407508f1e0127867cf80cba;p=tinc Fix invalid getuid() call on Windows. This is breaking the Windows build. Regression was introduced in 268e3ffca7b45cfc736e1bc9bec7a113c6c45701. --- diff --git a/src/fsck.c b/src/fsck.c index 8df95ec6..205a599c 100644 --- a/src/fsck.c +++ b/src/fsck.c @@ -155,7 +155,11 @@ static void check_conffile(const char *fname, bool server) { } int fsck(const char *argv0) { +#ifdef HAVE_MINGW + int uid = 0; +#else uid_t uid = getuid(); +#endif // Check that tinc.conf is readable.