summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
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:50:48 +0000
commitf602b40561a381bcde713ecce7b2340be55dbd78 (patch)
tree6b6c24303e7f8201e9459350ed254eaf9e0d5208 /sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
parent0b20ad793aae7ebfb3f4cafe179b0a8300020ceb (diff)
Surely we want closesocket() on Windows
(cherry picked from commit 49db90342f193f31500b2717cc27bdf2f25e2d95) Change-Id: I91461ae31c9934e6b3176402e2772ba7371f0fdb Reviewed-on: https://gerrit.libreoffice.org/2263 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sd/source/ui/remotecontrol/BufferedStreamSocket.cxx')
-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