summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-19 18:25:06 +0200
committerTor Lillqvist <tml@iki.fi>2013-02-19 18:25:22 +0200
commit49db90342f193f31500b2717cc27bdf2f25e2d95 (patch)
treea016167c20de9e614a71b91bcd938a64c44814d8
parenteea3634b2bd85e7f290e0504da1b8906c7d33ca4 (diff)
Surely we want closesocket() on Windows
Change-Id: I13d5715248612c9b1b50314d72f5eca202debd04
-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 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