X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fcontrol.c;h=86e0f68a11cb358ae10a21a2f122ee323e7594de;hb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;hp=175f2bd019f66771350086e560eb0f7d1e26713d;hpb=cfc9fee931c70554353ce6c4acc3407baac08745;p=tinc diff --git a/src/control.c b/src/control.c index 175f2bd0..86e0f68a 100644 --- a/src/control.c +++ b/src/control.c @@ -185,7 +185,7 @@ bool init_control(void) { free(localhost); fclose(f); -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS int unix_fd = socket(AF_UNIX, SOCK_STREAM, 0); if(unix_fd < 0) { @@ -232,7 +232,7 @@ bool init_control(void) { } void exit_control(void) { -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS unlink(unixsocketname); io_del(&unix_socket); close(unix_socket.fd);