summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-14 09:08:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-14 09:10:21 +0100
commitf5e86ebc097f0f8bc5b282511149cb026710ecde (patch)
tree84e8a1fe306b5f661eb24086183ccba3cfefaf19 /sd/source
parent7f232c7b91625138adf1d2e2cb8330aa14ce22d8 (diff)
Silence winsock deprecation warning
Change-Id: Ib0fe869e79ceea77b4dfe00a6ad387ce9c4149cc
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c b/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c
index 3e5a1813acc9..f8ac11663bb4 100644
--- a/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c
+++ b/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c
@@ -26,6 +26,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sal/config.h>
+
+#if defined _WIN32
+#define _WINSOCK_DEPRECATED_NO_WARNINGS // warnings about inet_addr
+#endif
+
#include <errno.h>
#include <stdlib.h>