projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace MinGW with Windows to avoid ambiguities
[tinc]
/
src
/
control.c
diff --git
a/src/control.c
b/src/control.c
index
175f2bd
..
86e0f68
100644
(file)
--- a/
src/control.c
+++ b/
src/control.c
@@
-185,7
+185,7
@@
bool init_control(void) {
free(localhost);
fclose(f);
free(localhost);
fclose(f);
-#ifndef HAVE_
MINGW
+#ifndef HAVE_
WINDOWS
int unix_fd = socket(AF_UNIX, SOCK_STREAM, 0);
if(unix_fd < 0) {
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) {
}
void exit_control(void) {
-#ifndef HAVE_
MINGW
+#ifndef HAVE_
WINDOWS
unlink(unixsocketname);
io_del(&unix_socket);
close(unix_socket.fd);
unlink(unixsocketname);
io_del(&unix_socket);
close(unix_socket.fd);