summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-05 15:52:13 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-05 15:52:29 +0100
commit7d8cf47d62ca380d4b25c5c92e68ad25b951b06e (patch)
tree2b3e5ea1492cceea7a5cdd027b0286770b48945e /sd/source/ui
parent743a4bf7f86d957412944fefbe694fe429f82463 (diff)
sd: fix non-WNT build
Change-Id: I187c4d1bef306ec05985cd6e8072d044e12a993f
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/remotecontrol/DiscoveryService.cxx2
1 files changed, 1 insertions, 1 deletions
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);