summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-19 18:25:06 +0200
committerPetr Mladek <pmladek@suse.cz>2013-02-19 16:44:42 +0000
commitbf3577466669bee218b59b08d4e3e467f89c27ff (patch)
treeaecb5a744a187bd8e262bcf408b072ab22b16ffe /sd
parent3df31ccde8ed719c6617eeb6114d5365ae343847 (diff)
Surely we want closesocket() on Windows
(cherry picked from commit 49db90342f193f31500b2717cc27bdf2f25e2d95) Change-Id: I13d5715248612c9b1b50314d72f5eca202debd04 Reviewed-on: https://gerrit.libreoffice.org/2262 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/BufferedStreamSocket.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
index 71fec179c009..e2c7a4aa90d0 100644
--- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
+++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
@@ -59,7 +59,11 @@ void BufferedStreamSocket::close()
{
if( usingCSocket )
{
+#ifdef WIN32
+ ::closesocket( mSocket );
+#else
::close( mSocket );
+#endif
mSocket = -1;
}
else