diff options
-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() |