byte-swapping on the port number which causes the call to fail on Intel
Macs.
This patch uses htons() instead of htonl() and fixes this bug.
Ashley Clark
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.347.2.2 2004/02/23 20:46:16 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.347.2.3 2006/03/18 22:10:44 neilc Exp $
*
* NOTES
*
DNSServiceRegistrationCreate(rendezvous_name,
"_postgresql._tcp.",
"",
- htonl(PostPortNumber),
+ htons(PostPortNumber),
"",
(DNSServiceRegistrationReply) reg_reply,
NULL);