X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.c;h=22fd6146030b29cbb7d4e90f9bcec24da47535e8;hb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;hp=d1e1e61d07cdf6ad830db6fb7f17fcf334d86ae1;hpb=cfc9fee931c70554353ce6c4acc3407baac08745;p=tinc diff --git a/src/invitation.c b/src/invitation.c index d1e1e61d..22fd6146 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -996,7 +996,7 @@ ask_netname: char filename2[PATH_MAX]; snprintf(filename, sizeof(filename), "%s" SLASH "tinc-up.invitation", confbase); -#ifdef HAVE_MINGW +#ifdef HAVE_WINDOWS snprintf(filename2, sizeof(filename2), "%s" SLASH "tinc-up.bat", confbase); #else snprintf(filename2, sizeof(filename2), "%s" SLASH "tinc-up", confbase); @@ -1028,7 +1028,7 @@ ask_netname: if(response == 'e') { char *command; -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS const char *editor = getenv("VISUAL"); if(!editor) { @@ -1358,7 +1358,7 @@ next: continue; } -#if HAVE_MINGW +#if HAVE_WINDOWS // If socket has been shut down, recv() on Windows returns -1 and sets sockerrno // to WSAESHUTDOWN, while on UNIX-like operating systems recv() returns 0, so we