]> Savannah Git Hosting - gnulib.git/commitdiff
sys_utsname: Make double-inclusion guard more robust.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Aug 2023 18:39:04 +0000 (20:39 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Aug 2023 18:39:04 +0000 (20:39 +0200)
* lib/sys_utsname.in.h: Test the guard symbol a second time.

ChangeLog
lib/sys_utsname.in.h

index aa401f7efe22e09a79ee34e11be26ae55b535570..12a8087ed4260ff417cfbc5f05b73d4c628f50ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-26  Bruno Haible  <bruno@clisp.org>
+
+       sys_utsname: Make double-inclusion guard more robust.
+       * lib/sys_utsname.in.h: Test the guard symbol a second time.
+
 2023-08-26  Bruno Haible  <bruno@clisp.org>
 
        sys_times: Make double-inclusion guard more robust.
index 40f715adbd86c069bbaec7a04bb0582a8d7e6ab8..cb46d8faee9fa5e5fdf4dd9f617d1cc30e49ef0c 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 @PRAGMA_COLUMNS@
 
+/* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_SYS_UTSNAME_H@
 
 /* Minix 3.1.8 has a bug: <stddef.h> must be included before <sys/utsname.h>.
@@ -33,6 +34,7 @@
 
 #endif
 
+#ifndef _@GUARD_PREFIX@_SYS_UTSNAME_H
 #define _@GUARD_PREFIX@_SYS_UTSNAME_H
 
 /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*.  */
@@ -111,3 +113,4 @@ _GL_WARN_ON_USE (uname, "uname is unportable - "
 
 
 #endif /* _@GUARD_PREFIX@_SYS_UTSNAME_H */
+#endif /* _@GUARD_PREFIX@_SYS_UTSNAME_H */