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
/
net_socket.c
diff --git
a/src/net_socket.c
b/src/net_socket.c
index
a8e197b
..
dfee573
100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-47,7
+47,7
@@
int fwmark;
listen_socket_t listen_socket[MAXSOCKETS];
int listen_sockets;
listen_socket_t listen_socket[MAXSOCKETS];
int listen_sockets;
-#ifndef HAVE_
MINGW
+#ifndef HAVE_
WINDOWS
io_t unix_socket;
#endif
io_t unix_socket;
#endif
@@
-425,7
+425,7
@@
void finish_connecting(connection_t *c) {
}
static void do_outgoing_pipe(connection_t *c, const char *command) {
}
static void do_outgoing_pipe(connection_t *c, const char *command) {
-#ifndef HAVE_
MINGW
+#ifndef HAVE_
WINDOWS
int fd[2];
if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
int fd[2];
if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
@@
-783,7
+783,7
@@
void handle_new_meta_connection(void *data, int flags) {
c->allow_request = ID;
}
c->allow_request = ID;
}
-#ifndef HAVE_
MINGW
+#ifndef HAVE_
WINDOWS
/*
accept a new UNIX socket connection
*/
/*
accept a new UNIX socket connection
*/