summaryrefslogtreecommitdiff
path: root/src/htslib.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-08-12 13:41:04 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-08-12 13:41:04 +0000
commit9caffeb8ae683d121e70b89e37133281e998a498 (patch)
treec6803a6a7675179d800f2bea45f3efdbd1857233 /src/htslib.c
parentdc202c3f518899af03a7289dadb1201e07b0f1b8 (diff)
Fixed WIN32 FTBFS
Diffstat (limited to 'src/htslib.c')
-rw-r--r--src/htslib.c2
1 files changed, 1 insertions, 1 deletions
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));