projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only call ioctlsocket() on Windows.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
8a07dfa
..
2d2e2f2
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-436,11
+436,13
@@
int main(int argc, char *argv[], char *envp[]) {
return 1;
}
+#ifdef HAVE_MINGW
unsigned long arg = 0;
if(ioctlsocket(fd, FIONBIO, &arg) != 0) {
fprintf(stderr, "ioctlsocket failed: %s", sockstrerror(sockerrno));
}
+#endif
if(connect(fd, (struct sockaddr *)&addr, sizeof addr) < 0) {