aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-01-10 17:58:58 +0100
committerFlorian Weimer <fweimer@redhat.com>2025-01-10 19:02:47 +0100
commit4a9a8a50981e2a3e0a04ef4c7ad7c26807c18161 (patch)
tree1da09d0106be0327755e65289fc0482d71bef215
parentc3d1dac96bdd10250aa37bb367d5ef8334a093a1 (diff)
downloadglibc-4a9a8a50981e2a3e0a04ef4c7ad7c26807c18161.zip
glibc-4a9a8a50981e2a3e0a04ef4c7ad7c26807c18161.tar.gz
glibc-4a9a8a50981e2a3e0a04ef4c7ad7c26807c18161.tar.bz2
Add missing include guards to <dl-tls.h>
Some architecture-specific variants lack header inclusion guards. Add them for consistency with the generic version.
-rw-r--r--sysdeps/i386/dl-tls.h4
-rw-r--r--sysdeps/m68k/dl-tls.h4
-rw-r--r--sysdeps/mips/dl-tls.h4
-rw-r--r--sysdeps/riscv/dl-tls.h4
-rw-r--r--sysdeps/s390/dl-tls.h4
5 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/i386/dl-tls.h b/sysdeps/i386/dl-tls.h
index 2dac81b..f453931 100644
--- a/sysdeps/i386/dl-tls.h
+++ b/sysdeps/i386/dl-tls.h
@@ -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 */
diff --git a/sysdeps/m68k/dl-tls.h b/sysdeps/m68k/dl-tls.h
index 4580278..85817fc 100644
--- a/sysdeps/m68k/dl-tls.h
+++ b/sysdeps/m68k/dl-tls.h
@@ -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 */
diff --git a/sysdeps/mips/dl-tls.h b/sysdeps/mips/dl-tls.h
index 1ce3054..c185971 100644
--- a/sysdeps/mips/dl-tls.h
+++ b/sysdeps/mips/dl-tls.h
@@ -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 */
diff --git a/sysdeps/riscv/dl-tls.h b/sysdeps/riscv/dl-tls.h
index 467c0b6..b8931a0 100644
--- a/sysdeps/riscv/dl-tls.h
+++ b/sysdeps/riscv/dl-tls.h
@@ -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 */
diff --git a/sysdeps/s390/dl-tls.h b/sysdeps/s390/dl-tls.h
index 53fd362..34bf840 100644
--- a/sysdeps/s390/dl-tls.h
+++ b/sysdeps/s390/dl-tls.h
@@ -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 */