summaryrefslogtreecommitdiff
path: root/lib/libc-config.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-06-07 00:34:54 +0200
committerBruno Haible <bruno@clisp.org>2021-06-07 00:50:36 +0200
commita5b7194c670089046d9f22c220fea2afc3985c2a (patch)
tree7498d456ee36173cd6bea2b1ed20f7d6859b023b /lib/libc-config.h
parentfed6ffdbb62eb2cb1a742d22cc3233fa12d2ba58 (diff)
downloadgnulib-a5b7194c670089046d9f22c220fea2afc3985c2a.tar.gz
glob-h: Avoid conflict with preprocessor macros owned by the system.
This fixes a compilation error on DragonFly BSD 6.0. * lib/glob.in.h: Don't include <libc-config.h>. Don't define __USE_GNU. Include glob-libc.gl.h instead of glob-libc.h. * modules/glob-h (Makefile.am): Arrange to create glob-libc.gl.h from glob-libc.h. * lib/libc-config.h: Add comment.
Diffstat (limited to 'lib/libc-config.h')
-rw-r--r--lib/libc-config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc-config.h b/lib/libc-config.h
index fabca2fa3e..f68749fc74 100644
--- a/lib/libc-config.h
+++ b/lib/libc-config.h
@@ -28,7 +28,10 @@
When compiled as part of glibc this is a no-op; when compiled as
part of Gnulib this includes Gnulib's <config.h> and defines macros
- that glibc library code would normally assume. */
+ that glibc library code would normally assume.
+
+ Note: This header file MUST NOT be included by public header files
+ of Gnulib. */
#include <config.h>