diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-18 22:09:58 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-18 22:09:58 +0000 |
commit | a5dba023593e208dcd9d128d4aa656177f15753e (patch) | |
tree | a6ecb8030a60e1f101c5127a807f7e5dfe4f057a /src | |
parent | b3358e2642d397e5e1d25ceade09c0749623e3a1 (diff) | |
download | postgresql-a5dba023593e208dcd9d128d4aa656177f15753e.tar.gz postgresql-a5dba023593e208dcd9d128d4aa656177f15753e.zip |
The call to DNSServiceRegistrationCreate in postmaster.c does incorrect
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 701208736d3..71923ec084b 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.482 2006/03/05 15:58:36 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.483 2006/03/18 22:09:58 neilc Exp $ * * NOTES * @@ -810,7 +810,7 @@ PostmasterMain(int argc, char *argv[]) DNSServiceRegistrationCreate(bonjour_name, "_postgresql._tcp.", "", - htonl(PostPortNumber), + htons(PostPortNumber), "", (DNSServiceRegistrationReply) reg_reply, NULL); |