]> Savannah Git Hosting - gnulib.git/commitdiff
glob: fix for use in glibc
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Sep 2017 01:58:50 +0000 (18:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Sep 2017 02:00:26 +0000 (19:00 -0700)
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.

ChangeLog
lib/glob.c

index 351495b2f11ff80e16b370a222012ddbce61524f..61e3e8cd11339059fb85e98e14dd95b99ba2441f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 8eb2b973028a85507c4118cee9ea35a3b77d98b8..ddab5357670f97aedaa5b256f4c21fc0898eb575 100644 (file)
@@ -80,7 +80,7 @@ static const char *next_brace_sub (const char *begin, int flags) __THROWNL;
 
 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