Skip site navigation (1) Skip section navigation (2)

pgsql: Fix portability issues in new src/port/inet_net_ntop.c file.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix portability issues in new src/port/inet_net_ntop.c file.
Date: 2010-11-26 23:00:41
Message-ID: E1PM7HV-0003hE-S7@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Fix portability issues in new src/port/inet_net_ntop.c file.

1. Don't #include postgres.h in a frontend build.

2. Don't assume that the backend's symbol PGSQL_AF_INET6 has anything to do
with the constant that will be used by system library functions (because,
in point of fact, it usually doesn't).  Fortunately, PGSQL_AF_INET is equal
to AF_INET, so we can just cater for both sets of values in one case
construct without fear of conflict.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=3840bc0847aa1b635127ff4a55b5257c9ebc79b8

Modified Files
--------------
src/port/inet_net_ntop.c |   25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)

Responses

pgsql-committers by date

Next:From: Bruce MomjianDate: 2010-11-26 23:14:49
Subject: Re: pgsql: Fix portability issues in new src/port/inet_net_ntop.c file.
Previous:From: Robert HaasDate: 2010-11-26 22:54:49
Subject: pgsql: Add more ALTER <object> .. SET SCHEMA commands.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group