mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
FS-5325 windows compile
(cherry picked from commit d466316ace5e797c8130ca672d3ba17c79669f16)
This commit is contained in:
parent
d125147dd8
commit
b52994ed5d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user