Re: Autoconf, libpq and replacement function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Autoconf, libpq and replacement function
Дата
Msg-id 7877.1227215145@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Autoconf, libpq and replacement function  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Autoconf, libpq and replacement function  (Magnus Hagander <magnus@hagander.net>)
Re: Autoconf, libpq and replacement function  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Tom Lane wrote:
>> Since fnmatch and the #define's are supposed to be provided by
>> <fnmatch.h>, I think you should probably put the substitute definitions
>> in a substitute fnmatch.h, not port.h, to avoid that risk.

> Do we have an example where we do that before? I assume there is some
> autoconfy way to make that include file only "appear" in the include
> path if the system one doesn't exist or is broken?

Not really.  I'd suggest making the callers do something like
#ifdef HAVE_FNMATCH#include <fnmatch.h>#else#include "port/pg_fnmatch.h"#endif
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Autoconf, libpq and replacement function
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] db_user_namespace, md5 and changing passwords