From 9caffeb8ae683d121e70b89e37133281e998a498 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Mon, 12 Aug 2013 13:41:04 +0000 Subject: Fixed WIN32 FTBFS --- src/htslib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/htslib.c b/src/htslib.c index 04243ff..7e0404e 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -2274,7 +2274,7 @@ T_SOC newhttp(httrackp * opt, const char *_iadr, htsblk * retour, int port, if (!waitconnect) { #ifdef _WIN32 unsigned long p = 1; // non bloquant - if (ioctlsocket(soc, FIONBIO, &val)) { + if (ioctlsocket(soc, FIONBIO, &p)) { const int last_errno = WSAGetLastError(); snprintf(retour->msg, sizeof(retour->msg), "Non-blocking socket failed: %s", strerror(last_errno)); -- cgit v1.2.3