From fec14791e869180bb7994ca38ca7006cc2e957fb Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 11 Dec 2009 22:24:07 +0100 Subject: [PATCH] Only call ioctlsocket() on Windows. --- src/tincctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tincctl.c b/src/tincctl.c index 8a07dfa0..2d2e2f25 100644 --- 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) { -- 2.39.5