From 7d8cf47d62ca380d4b25c5c92e68ad25b951b06e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 5 Mar 2015 15:52:13 +0100 Subject: sd: fix non-WNT build Change-Id: I187c4d1bef306ec05985cd6e8072d044e12a993f --- sd/source/ui/remotecontrol/DiscoveryService.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source/ui') diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx index 32e9afb88f15..9ce33ae98e47 100644 --- a/sd/source/ui/remotecontrol/DiscoveryService.cxx +++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx @@ -123,7 +123,7 @@ void DiscoveryService::setupSockets() struct ip_mreq multicastRequest; // the Win32 SDK 8.1 deprecates inet_addr() -#if _WIN32_WINNT >= _WIN32_WINNT_VISTA +#if defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_VISTA IN_ADDR addr; OUString const saddr("239.0.0.1"); INT ret = InetPtonW(AF_INET, saddr.getStr(), & addr); -- cgit