diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 21:02:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 21:02:14 +0100 |
commit | b2ba39927b64f56831d4d7cca85b831911930809 (patch) | |
tree | 734f8e3a054af3d7fe2acbbc23e964a80eab8545 /sd | |
parent | a95f63407f63f2e1fc3ce1916f97406012993606 (diff) |
Blind fix for non-standard send(2) signature on Windows
Change-Id: I0cff8d60aea0d9d0f41209ea04380259142ed607
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/BufferedStreamSocket.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx index 9b756fe76012..8f36ea5b9254 100644 --- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx +++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx @@ -56,7 +56,14 @@ sal_Int32 BufferedStreamSocket::write( const void* pBuffer, sal_uInt32 n ) if ( !usingCSocket ) return StreamSocket::write( pBuffer, n ); else - return ::send( mSocket, pBuffer, (size_t) n, 0 ); + return ::send( + mSocket, +#if defined WNT + static_cast<char *>(pBuffer), +#else + pBuffer, +#endif + (size_t) n, 0 ); } void BufferedStreamSocket::close() |