summaryrefslogtreecommitdiff
path: root/lib/glob.in.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-02-24 11:36:06 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-02-24 11:36:33 -0800
commit5c7fc16b455ba87ffd1fab50905f96bc20c7b05b (patch)
tree2f0f88b063fd4af75cbcd0aa7c313097c2fbfe5e /lib/glob.in.h
parent494fea035166a4947db72bd23161faa1f1733708 (diff)
downloadgnulib-5c7fc16b455ba87ffd1fab50905f96bc20c7b05b.tar.gz
glob: include libc-config.h only if needed
Diffstat (limited to 'lib/glob.in.h')
-rw-r--r--lib/glob.in.h4
1 files changed, 3 insertions, 1 deletions
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 <libc-config.h>
+# ifndef __attribute_maybe_unused__
+# include <libc-config.h>
+# endif
# include <stddef.h>