diff options
author | Jim Meyering <jim@meyering.net> | 1993-04-19 00:39:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-04-19 00:39:16 +0000 |
commit | adcff142d8c2b5f7f8c08ff8cbcaf97d346af9b2 (patch) | |
tree | e47cc900f4fea1f1f6e9a90d1297a353d6859def /lib/fnmatch.c | |
parent | 29c0442cadced638d3f26b50db5a6328ad7b82d9 (diff) | |
download | coreutils-adcff142d8c2b5f7f8c08ff8cbcaf97d346af9b2.tar.xz |
merge with 3.4.8
Diffstat (limited to 'lib/fnmatch.c')
-rw-r--r-- | lib/fnmatch.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 20e2b5050..8a25a905d 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -15,10 +15,26 @@ License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <errno.h> #include <fnmatch.h> #include <ctype.h> + +/* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C + Library, but also included in many other GNU distributions. Compiling + and linking in this code is a waste when using the GNU C library + (especially if it is a shared library). Rather than having every GNU + program understand `configure --with-gnu-libc' and omit the object files, + it is simpler to just do this in the source for each such file. */ + +#if defined (_LIBC) || !defined (__GNU_LIBRARY__) + + #if !defined(__GNU_LIBRARY__) && !defined(STDC_HEADERS) extern int errno; #endif @@ -180,3 +196,5 @@ fnmatch (pattern, string, flags) return FNM_NOMATCH; } + +#endif /* _LIBC or not __GNU_LIBRARY__. */ |