Browse Source

Fix Windows Bridge server build

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
d3f77725d0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/bridge.cpp

+ 2
- 2
src/bridge.cpp View File

@@ -65,7 +65,7 @@ struct BridgeClientConnection {
#else
int sendFlags = 0;
#endif
ssize_t written = ::send(client, buffer, length, sendFlags);
ssize_t written = ::send(client, (const char*) buffer, length, sendFlags);
if (written < 0)
closeRequested = true;
}
@@ -289,6 +289,7 @@ static void clientRun(int client) {
close(client);
});
int err;
(void) err;

#ifdef ARCH_MAC
// Avoid SIGPIPE
@@ -302,7 +303,6 @@ static void clientRun(int client) {
ioctlsocket(client, FIONBIO, &blockingMode);
#else
err = fcntl(client, F_SETFL, fcntl(client, F_GETFL, 0) & ~O_NONBLOCK);
(void) err;
#endif

BridgeClientConnection connection;


Loading…
Cancel
Save