Re: Autoconf, libpq and replacement function

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Autoconf, libpq and replacement function
Date: 2008-11-24 12:22:21
Message-ID: 492A9C7D.8030408@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2008-11-24 12:24:47 Re: blatantly a bug in the documentation
Previous Message Peter Eisentraut 2008-11-24 12:18:19 Re: Autoconf, libpq and replacement function