[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - sd/source

Tor Lillqvist tml at iki.fi
Tue Feb 19 08:45:02 PST 2013


 sd/source/ui/remotecontrol/BufferedStreamSocket.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit bf3577466669bee218b59b08d4e3e467f89c27ff
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Feb 19 18:25:06 2013 +0200

    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 at suse.cz>
    Tested-by: Petr Mladek <pmladek at suse.cz>

diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
index 71fec17..e2c7a4a 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


More information about the Libreoffice-commits mailing list