]> Savannah Git Hosting - gnulib.git/commitdiff
glob: include libc-config.h only if needed
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Feb 2021 19:36:06 +0000 (11:36 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Feb 2021 19:36:33 +0000 (11:36 -0800)
ChangeLog
lib/glob.in.h

index 3b78c47a6ba21ddab8ad1d62cd6411429f6290a5..ddfb37935d64e94a298bcabb87369938c8a123c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        Inspired by Tom Tromey’s report for RHEL 6 in:
        https://lists.gnu.org/r/bug-gnulib/2021-02/msg00088.html
        * lib/glob.c [!_LIBC]: Include libc-config.h, not just config.h
+       * lib/glob.in.h: Include libc-config.h only if needed.
 
 2021-02-21  Bruno Haible  <bruno@clisp.org>
 
index d4270d7f459f3ea82686ffa531a4883db56d0ec7..d8b03c5f3a61d5c265ce25fceca75a341c09565a 100644 (file)
@@ -70,7 +70,9 @@ typedef int (*_gl_glob_errfunc_fn) (const char *, int);
 
 /* Preparations for including the standard GNU C Library header.  */
 
-# include <libc-config.h>
+# ifndef __attribute_maybe_unused__
+#  include <libc-config.h>
+# endif
 
 # include <stddef.h>