projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure tinc compiles on Windows.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
b977d13
..
c25ad2c
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-31,6
+31,10
@@
#include "tincctl.h"
#include "top.h"
#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;
/* 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
#ifndef HAVE_MINGW
char *editor = getenv("VISUAL") ?: getenv("EDITOR") ?: "vi";
#else
- char *editor = "edit"
+ char *editor = "edit"
;
#endif
char *command;
#endif
char *command;