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

From Peter Eisentraut
Subject Re: Autoconf, libpq and replacement function
Date
Msg-id 492A9B8B.9080007@gmx.net
Whole thread Raw
In response to Re: Autoconf, libpq and replacement function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> I'd suggest making the callers do something like
> 
>     #ifdef HAVE_FNMATCH
>     #include <fnmatch.h>
>     #else
>     #include "port/pg_fnmatch.h"
>     #endif

The way Autoconf suggests to organize this is to provide a fake 
fnmatch.h (they call it fnmatch_.h) and link it to fnmatch.h if it is 
needed.

This way, callers don't need to know the difference.


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Windowing Function Patch Review -> Standard Conformance
Next
From: Peter Eisentraut
Date:
Subject: Re: Autoconf, libpq and replacement function