Fix invalid getuid() call on Windows.

This is breaking the Windows build. Regression was introduced in
268e3ffca7.
This commit is contained in:
Etienne Dechamps 2015-03-14 16:07:54 +00:00
parent 6568cffd52
commit 4989362300

View file

@ -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.