X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fscript.c;h=0b16c861d8e4d5930b306b7f3e2df4adde0ed0fe;hb=421aa3815645b2835c89799e4db91cf35466542b;hp=b380931f2ea09c91b843eca9c3fd485ad0a8a3ba;hpb=cfc9fee931c70554353ce6c4acc3407baac08745;p=tinc diff --git a/src/script.c b/src/script.c index b380931f..0b16c861 100644 --- a/src/script.c +++ b/src/script.c @@ -37,7 +37,7 @@ static void unputenv(const char *p) { ptrdiff_t len = e - p; #ifndef HAVE_UNSETENV -#ifdef HAVE_MINGW +#ifdef HAVE_WINDOWS // Windows requires putenv("FOO=") to unset %FOO% len++; #endif @@ -148,7 +148,7 @@ bool execute_script(const char *name, environment_t *env) { /* First check if there is a script */ -#ifdef HAVE_MINGW +#ifdef HAVE_WINDOWS if(!*scriptextension) { const char *pathext = getenv("PATHEXT");