[Libreoffice-commits] core.git: sd/source
Michael Stahl
mstahl at redhat.com
Thu Mar 5 06:57:56 PST 2015
sd/source/ui/remotecontrol/DiscoveryService.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7d8cf47d62ca380d4b25c5c92e68ad25b951b06e
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Mar 5 15:52:13 2015 +0100
sd: fix non-WNT build
Change-Id: I187c4d1bef306ec05985cd6e8072d044e12a993f
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx
index 32e9afb..9ce33ae 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);
More information about the Libreoffice-commits
mailing list