From 9423b456a1ea011cc7a946b450bb9e1baace8c63 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Sep 2010 09:00:04 +0200 Subject: [PATCH] zeroconf-bonjour: use g_htons() instead of htons() htons() is not available if netinet/in.h is not included. --- src/zeroconf-bonjour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zeroconf-bonjour.c b/src/zeroconf-bonjour.c index 76b96eaf5..84f777c50 100644 --- a/src/zeroconf-bonjour.c +++ b/src/zeroconf-bonjour.c @@ -63,7 +63,7 @@ void init_zeroconf_osx(const char *serviceName) DNSServiceErrorType error = DNSServiceRegister(&dnsReference, 0, 0, serviceName, SERVICE_TYPE, NULL, NULL, - htons(listen_port), 0, + g_htons(listen_port), 0, NULL, dnsRegisterCallback, NULL);