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


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


BridgeClientConnection connection; BridgeClientConnection connection;


Loading…
Cancel
Save