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:18:19
Message-ID: 492A9B8B.9080007@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2008-11-24 12:22:21 Re: Autoconf, libpq and replacement function
Previous Message Heikki Linnakangas 2008-11-24 11:21:47 Re: Windowing Function Patch Review -> Standard Conformance