The call to DNSServiceRegistrationCreate in postmaster.c does incorrect byte-swapping on the port number which causes the Bonjour registration call to fail on Intel Macs.
This patch uses htons() instead of htonl() and fixes this bug.
Ashley Clark