libfreerdp-core: fix linux build
This commit is contained in:
parent
5e4f77b05f
commit
05947dd0b2
@ -29,6 +29,7 @@
|
||||
#include <winpr/crt.h>
|
||||
#include <winpr/synch.h>
|
||||
#include <winpr/stream.h>
|
||||
#include <winpr/winsock.h>
|
||||
|
||||
#ifndef MSG_NOSIGNAL
|
||||
#define MSG_NOSIGNAL 0
|
||||
|
@ -370,11 +370,11 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
|
||||
if (status != 1)
|
||||
return WAIT_TIMEOUT;
|
||||
|
||||
length = read(timer->fd, (void*) &expirations, sizeof(UINT64));
|
||||
status = read(timer->fd, (void*) &expirations, sizeof(UINT64));
|
||||
|
||||
if (length != 8)
|
||||
if (status != 8)
|
||||
{
|
||||
if (length == -1)
|
||||
if (status == -1)
|
||||
{
|
||||
if (errno == ETIMEDOUT)
|
||||
return WAIT_TIMEOUT;
|
||||
@ -416,7 +416,6 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
|
||||
return WAIT_FAILED;
|
||||
}
|
||||
|
||||
|
||||
FD_ZERO(&rfds);
|
||||
FD_SET(fd, &rfds);
|
||||
ZeroMemory(&timeout, sizeof(timeout));
|
||||
|
Loading…
Reference in New Issue
Block a user