[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling under Linux
From: |
Stepan Kasal |
Subject: |
Re: Compiling under Linux |
Date: |
Sun, 5 Jan 2003 09:40:48 +0100 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
On Fri, Jan 03, 2003 at 04:24:14PM +0100, Alfred M. Szmidt wrote:
> BTW, the right way to fix the FNM_* issue is to #define _GNU_SOURCE.
>
> That is not the right way at all. Not all systems use the GNU C
> library, so this will not work on those systems.
>
> From a quick peek in the findutils CVS it already does what is right;
> it checks if FNM_CASEFOLD is defined, and if it is not, then it gets
> defined (see [findutils]/m4/fnmatchcase.m4).
I aggree, it does what's right. It checks whether the fnmatch in glibc
has all we need (see m4/fnmatchcase.m4), and if it doesn't it uses the
copy distributed with findutils.
The source contains #define _GNU_SOURCE.
This is important both if the system libc was glibc and if we happen
to use the included copy of fnmatch.
Cheers,
Stepan Kasal