diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-02-19 18:25:06 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-02-19 18:25:22 +0200 |
commit | 49db90342f193f31500b2717cc27bdf2f25e2d95 (patch) | |
tree | a016167c20de9e614a71b91bcd938a64c44814d8 /sd | |
parent | Resolves: fdo#52519 crash on typing some Malayalam (diff) | |
download | core-49db90342f193f31500b2717cc27bdf2f25e2d95.tar.gz core-49db90342f193f31500b2717cc27bdf2f25e2d95.zip |
Surely we want closesocket() on Windows
Change-Id: I13d5715248612c9b1b50314d72f5eca202debd04
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/BufferedStreamSocket.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx index 50ee73667261..0defa3cba7bd 100644 --- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx +++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx @@ -63,7 +63,11 @@ void BufferedStreamSocket::close() { if( usingCSocket ) { +#ifdef WIN32 + ::closesocket( mSocket ); +#else ::close( mSocket ); +#endif mSocket = -1; } else |