]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add missing include guards to <dl-tls.h>
authorFlorian Weimer <fweimer@redhat.com>
Fri, 10 Jan 2025 16:58:58 +0000 (17:58 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 10 Jan 2025 18:02:47 +0000 (19:02 +0100)
Some architecture-specific variants lack header inclusion guards.
Add them for consistency with the generic version.

sysdeps/i386/dl-tls.h
sysdeps/m68k/dl-tls.h
sysdeps/mips/dl-tls.h
sysdeps/riscv/dl-tls.h
sysdeps/s390/dl-tls.h

index 2dac81bbd267ed4ed0876429520db5212ffe7805..f453931d7890b9c6ea92b7f23ddd8f037a212c8a 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#ifndef _DL_TLS_H
+#define _DL_TLS_H
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct dl_tls_index
@@ -65,3 +67,5 @@ rtld_hidden_def (___tls_get_addr)
 
 # endif
 #endif
+
+#endif /* _DL_TLS_H */
index 458027868f0ed792286ad09c7ecc8d4431104c9f..85817fcce98452cd175ade1cccfd387bc94db42c 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library.  If not, see
    <https://www.gnu.org/licenses/>.  */
 
+#ifndef _DL_TLS_H
+#define _DL_TLS_H
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct
@@ -43,3 +45,5 @@ typedef struct
 extern void *__tls_get_addr (tls_index *ti);
 
 #define __TLS_GET_ADDR(__ti)   (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
+
+#endif /* _DL_TLS_H */
index 1ce3054bbb4457e426aeb641f1fe68e496b52f0e..c1859719f5454899b3280c4dff1e68146e5f8104 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library.  If not, see
    <https://www.gnu.org/licenses/>.  */
 
+#ifndef _DL_TLS_H
+#define _DL_TLS_H
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct
@@ -42,3 +44,5 @@ typedef struct
 extern void *__tls_get_addr (tls_index *ti);
 
 #define __TLS_GET_ADDR(__ti)   (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
+
+#endif /* _DL_TLS_H */
index 467c0b617935b63de0ad9888006c45336eac6ea1..b8931a0fa5b51978fe370fd6996aeba933d35853 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library.  If not, see
    <https://www.gnu.org/licenses/>.  */
 
+#ifndef _DL_TLS_H
+#define _DL_TLS_H
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct
@@ -45,3 +47,5 @@ extern void *__tls_get_addr (tls_index *ti);
 
 /* Value used for dtv entries for which the allocation is delayed.  */
 #define TLS_DTV_UNALLOCATED    ((void *) -1l)
+
+#endif /* _DL_TLS_H */
index 53fd36247581f573bb98a06ee1c895da97121f38..34bf840d53959c1c34aaca2ba3bea0a7ff1740fc 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#ifndef _DL_TLS_H
+#define _DL_TLS_H
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct
@@ -105,3 +107,5 @@ extern void *__tls_get_addr_internal (tls_index *ti);
       + (unsigned long) __builtin_thread_pointer (); })
 
 #endif
+
+#endif /* _DL_TLS_H */