Mercurial > gnulib
changeset 38807:1b4a640f6b6c
glob: fix for use in glibc
Problem reported by Adhemerval Zanella in:
https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
* lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
Do not redefine if _LIBC.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 05 Sep 2017 18:58:50 -0700 |
parents | 30feb566d489 |
children | 68ea5100727d |
files | ChangeLog lib/glob.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Sep 02 15:39:16 2017 -0700 +++ b/ChangeLog Tue Sep 05 18:58:50 2017 -0700 @@ -1,3 +1,11 @@ +2017-09-05 Paul Eggert <eggert@cs.ucla.edu> + + glob: fix for use in glibc + Problem reported by Adhemerval Zanella in: + https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html + * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK): + Do not redefine if _LIBC. + 2017-09-02 Paul Eggert <eggert@cs.ucla.edu> glob: fix bugs with long login names
--- a/lib/glob.c Sat Sep 02 15:39:16 2017 -0700 +++ b/lib/glob.c Tue Sep 05 18:58:50 2017 -0700 @@ -80,7 +80,7 @@ typedef uint_fast8_t dirent_type; -#ifndef HAVE_STRUCT_DIRENT_D_TYPE +#if !defined _LIBC && !defined HAVE_STRUCT_DIRENT_D_TYPE /* Any distinct values will do here. Undef any existing macros out of the way. */ # undef DT_UNKNOWN