aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-09-23 09:00:04 +0200
committerMax Kellermann <max@duempel.org>2010-09-23 09:01:37 +0200
commit9423b456a1ea011cc7a946b450bb9e1baace8c63 (patch)
tree20fd70117a86306af59a11092b27c80dfe77e4c4 /src
parent64209749fb477791be66cc4a1b7130f9d48b74b3 (diff)
downloadmpd-9423b456a1ea011cc7a946b450bb9e1baace8c63.tar.gz
mpd-9423b456a1ea011cc7a946b450bb9e1baace8c63.tar.xz
mpd-9423b456a1ea011cc7a946b450bb9e1baace8c63.zip
zeroconf-bonjour: use g_htons() instead of htons()
htons() is not available if netinet/in.h is not included.
Diffstat (limited to '')
-rw-r--r--src/zeroconf-bonjour.c2
1 files changed, 1 insertions, 1 deletions
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);