summaryrefslogtreecommitdiffabout
authorPaul Eggert <eggert@cs.ucla.edu>2021-02-24 19:36:06 (GMT)
committer Paul Eggert <eggert@cs.ucla.edu>2021-02-24 19:36:33 (GMT)
commit5c7fc16b455ba87ffd1fab50905f96bc20c7b05b (patch) (side-by-side diff)
tree2f0f88b063fd4af75cbcd0aa7c313097c2fbfe5e
parent494fea035166a4947db72bd23161faa1f1733708 (diff)
downloadgnulib-master.tar.gz
gnulib-master.tar.bz2
glob: include libc-config.h only if neededHEADmaster
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--lib/glob.in.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b78c47..ddfb379 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,13 @@
2021-02-24 Paul Eggert <eggert@cs.ucla.edu>
glob: include libc-config.h in a more-standard way
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>
string-buffer: Add tests.
* tests/test-string-buffer.c: New file.
* modules/string-buffer-tests: New file.
diff --git a/lib/glob.in.h b/lib/glob.in.h
index d4270d7..d8b03c5 100644
--- a/lib/glob.in.h
+++ b/lib/glob.in.h
@@ -67,13 +67,15 @@ typedef int (*_gl_glob_errfunc_fn) (const char *, int);
#if !@HAVE_GLOB_H@ || @REPLACE_GLOB@
/* 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>
/* On some systems, such as AIX 5.1, <sys/stat.h> does a "#define stat stat64".
Make sure this definition is seen before glob-libc.h defines types that
rely on 'struct stat'. */

Return to:

Send suggestions and report system problems to the System administrator.