Re: Autoconf, libpq and replacement function - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Autoconf, libpq and replacement function
Date
Msg-id 492A9C7D.8030408@gmx.net
Whole thread Raw
In response to Re: Autoconf, libpq and replacement function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Autoconf, libpq and replacement function
List pgsql-hackers
Tom Lane wrote:
> Also, right now we have got
> 
> src/include/getaddrinfo.h
> src/include/getopt_long.h
> 
> which really make me itch now that I am contemplating the possibility
> that we try to use libc-supplied code for these functions along with
> our own header definitions.

These particular header files look like they are robust enough to deal 
with this case.  But overall this isn't a great idea.

> I think the reason we've avoided putting such stuff into include/port/
> is that right now that directory consists exclusively of OS-specific
> files.  Maybe we need another include subdirectory?

I think the idea is rather that you don't need to change call sites to 
include the system header or our own.  The symlink approach I mentioned 
earlier might work.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Autoconf, libpq and replacement function
Next
From: "Merlin Moncure"
Date:
Subject: Re: blatantly a bug in the documentation