From 5c7fc16b455ba87ffd1fab50905f96bc20c7b05b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 24 Feb 2021 11:36:06 -0800 Subject: glob: include libc-config.h only if needed --- ChangeLog | 1 + lib/glob.in.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3b78c47a6b..ddfb37935d 100644 --- 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 diff --git a/lib/glob.in.h b/lib/glob.in.h index d4270d7f45..d8b03c5f3a 100644 --- a/lib/glob.in.h +++ b/lib/glob.in.h @@ -70,7 +70,9 @@ typedef int (*_gl_glob_errfunc_fn) (const char *, int); /* Preparations for including the standard GNU C Library header. */ -# include +# ifndef __attribute_maybe_unused__ +# include +# endif # include -- cgit v1.2.1