summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-08-06 14:16:04 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-06 15:04:24 +0200
commit7040497038ce7dc3723887a28a4007cc9b5c942d (patch)
tree477911ecbd334915ae4189e3d061dcfc7f85dc6a /sd
parent5c0e6df23eeae7c836bd9cb548922ed53bc5b791 (diff)
sd: remotecontrol: fix setsockopt call for WNT:
Apparently on Linux the 4th parameter to setsockopt has type void* while on Windows it is const char*; add a cast in the hope that it will work. Change-Id: I5506788a7fa12b03d9cec2756c84487db772fb0d
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/DiscoveryService.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx
index f482158a6633..fddaf3a19ada 100644
--- a/sd/source/ui/remotecontrol/DiscoveryService.cxx
+++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx
@@ -50,6 +50,9 @@ DiscoveryService::DiscoveryService()
multicastRequest.imr_interface.s_addr = htonl(INADDR_ANY);
setsockopt( mSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
+#ifdef WNT
+ (const char*)
+#endif
&multicastRequest, sizeof(multicastRequest));
}
@@ -116,4 +119,4 @@ void DiscoveryService::setup()
spService->launch();
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */