projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edebf57
)
Only call ioctlsocket() on Windows.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 11 Dec 2009 21:24:07 +0000
(22:24 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 11 Dec 2009 21:24:07 +0000
(22:24 +0100)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index 8a07dfa020cb33951b331820a6c1c686e280f083..2d2e2f25431d903bc53a2d1a7bd302312daf98ad 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) {