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

From Tom Lane
Subject Re: Autoconf, libpq and replacement function
Date
Msg-id 8304.1227216651@sss.pgh.pa.us
Whole thread Raw
In response to Re: Autoconf, libpq and replacement function  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Autoconf, libpq and replacement function  (Magnus Hagander <magnus@hagander.net>)
Re: Autoconf, libpq and replacement function  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> AFAICS, we're not doing this for any other functions though - or am I
> too tired and just looking in the wrong place? Or is that because
> they're just function definitions and not #defines?
> (I want to be sure to stick whatever new file there is in the same place..)

src/include/rusagestub.h is doing things more or less this way.

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.

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?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Next
From: "Merlin Moncure"
Date:
Subject: Re: array_agg and array_accum (patch)