mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-25 13:23:02 +08:00
Preliminary support for MSYS/MinGW builds. Doesn't yet build
CSynergyHook as a DLL and does not compile or link in the resources for the binaries.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "CArchNetworkWinsock.h"
|
||||
#include "CArch.h"
|
||||
#include "CArchMultithreadWindows.h"
|
||||
#include "IArchMultithread.h"
|
||||
#include "XArchWindows.h"
|
||||
#include <malloc.h>
|
||||
@@ -578,7 +579,7 @@ CArchNetworkWinsock::throwErrorOnSocket(CArchSocket s)
|
||||
void
|
||||
CArchNetworkWinsock::setBlockingOnSocket(SOCKET s, bool blocking)
|
||||
{
|
||||
assert(s != NULL);
|
||||
assert(s != 0);
|
||||
|
||||
int flag = blocking ? 0 : 1;
|
||||
if (ioctl_winsock(s, FIONBIO, &flag) == SOCKET_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user