提交 b52994ed authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-5325 windows compile

(cherry picked from commit d466316a)
上级 d125147d
...@@ -272,13 +272,14 @@ static int wait_for_data(struct stream_data *data, int ret, int timeout) ...@@ -272,13 +272,14 @@ static int wait_for_data(struct stream_data *data, int ret, int timeout)
int iks_set_blocking(void *fd, int blocking) int iks_set_blocking(void *fd, int blocking)
{ {
#ifdef WIN32
unsigned long mode = !blocking;
#endif
if (!fd) { if (!fd) {
return -1; return -1;
} }
#ifdef WIN32 #ifdef WIN32
ULONG mode = !blocking;
if (ioctlsocket((SOCKET)(intptr_t) fd, FIONBIO, &mode)) { if (ioctlsocket((SOCKET)(intptr_t) fd, FIONBIO, &mode)) {
return -1; return -1;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论