Fix invalid getuid() call on Windows.
[oweals/tinc.git] / src / fsck.c
index 8df95ec6f7a17de386a9f51c78d1a886dc3e5dd9..205a599c4eef10354b9ce9f7c4a08e17c05932a8 100644 (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.