]> Savannah Git Hosting - gnulib.git/commitdiff
libc-config: Avoid overriding the headers from an installed newer glibc.
authorBruno Haible <bruno@clisp.org>
Tue, 5 Jan 2021 01:02:36 +0000 (02:02 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 5 Jan 2021 01:07:02 +0000 (02:07 +0100)
Reported by Paul E Murphy <murphyp@linux.ibm.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.

* lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.

ChangeLog
lib/cdefs.h

index 9ebc32bea1a2e6f2f907d0bc00a6a0b29f95db68..db0b1c1f53ec89bf79b5e8caab711dad7999d0ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-01-04  Bruno Haible  <bruno@clisp.org>
+
+       libc-config: Avoid overriding the headers from an installed newer glibc.
+       Reported by Paul E Murphy <murphyp@linux.ibm.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.
+       * lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
+
 2021-01-04  Simon Josefsson  <simon@josefsson.org>
 
        maintainer-makefile: Invoke syntax-checks regardless of locale.
index 6b1cf233d611dff89ff5559aa3a7608b068508e4..fd72b7b4de2b7dfceb07840f490c23136f766f09 100644 (file)
@@ -15,8 +15,8 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#ifndef        _SYS_CDEFS_H
-#define        _SYS_CDEFS_H    1
+#ifndef        _GL_CDEFS_H
+#define        _GL_CDEFS_H     1
 
 /* We are almost always included from features.h. */
 #ifndef _FEATURES_H
 # define __HAVE_GENERIC_SELECTION 0
 #endif
 
-#endif  /* sys/cdefs.h */
+#endif  /* gnulib cdefs.h */