From 32cb84f3718e96658f24ffc67c2e56386bf3f25f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 27 Feb 2013 13:51:45 +0200 Subject: Use closesocket() on Windows Change-Id: Ie6eca5f95aab326df41f3e7ee260b84bd1bf6afd --- sd/source/ui/remotecontrol/DiscoveryService.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sd') diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx index 2cfa2624b598..a19cb32b228f 100644 --- a/sd/source/ui/remotecontrol/DiscoveryService.cxx +++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx @@ -76,7 +76,11 @@ DiscoveryService::DiscoveryService() : DiscoveryService::~DiscoveryService() { +#ifdef WNT + closesocket( mSocket ); +#else close( mSocket ); +#endif } void SAL_CALL DiscoveryService::run() -- cgit v1.2.3