]> git.meshlink.io Git - meshlink/blobdiff - src/tincctl.c
Make sure tinc compiles on Windows.
[meshlink] / src / tincctl.c
index b977d13765cc9d33a632118c2feae55c2207f9a3..c25ad2c5c83552181b9640f85e5f49b2ac7938f5 100644 (file)
 #include "tincctl.h"
 #include "top.h"
 
+#ifdef HAVE_MINGW
+#define mkdir(a, b) mkdir(a)
+#endif
+
 /* The name this program was run with. */
 static char *program_name = NULL;
 
@@ -1354,7 +1358,7 @@ static int cmd_edit(int argc, char *argv[]) {
 #ifndef HAVE_MINGW
        char *editor = getenv("VISUAL") ?: getenv("EDITOR") ?: "vi";
 #else
-       char *editor = "edit"
+       char *editor = "edit";
 #endif
 
        char *command;