about summary refs log tree commit diff
path: root/nptl/descr.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-07-07 06:10:18 +0000
committerUlrich Drepper <drepper@redhat.com>2005-07-07 06:10:18 +0000
commit253eb3a0acfae12863c40ef6c6b0128d5b0dc02b (patch)
tree518cbd1b8d05996f4eb31a0cfbbf8789844fcb69 /nptl/descr.h
parent587d6ddc60bbdf561be3f217280220af9102c3e8 (diff)
downloadglibc-253eb3a0acfae12863c40ef6c6b0128d5b0dc02b.tar.gz
glibc-253eb3a0acfae12863c40ef6c6b0128d5b0dc02b.tar.xz
glibc-253eb3a0acfae12863c40ef6c6b0128d5b0dc02b.zip
* elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
	Reported by Ulrich Weigand <uweigand@de.ibm.com>.

	* elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
Diffstat (limited to 'nptl/descr.h')
-rw-r--r--nptl/descr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/descr.h b/nptl/descr.h
index 454bb2a547..77251d5e45 100644
--- a/nptl/descr.h
+++ b/nptl/descr.h
@@ -254,6 +254,13 @@ struct pthread
 
   /* Resolver state.  */
   struct __res_state res;
+
+  /* If you add fields after the res field above, please adjust
+     the following macro.  */
+#define PTHREAD_STRUCT_END_PADDING \
+  (sizeof (struct pthread) - offsetof (struct pthread, res) \
+   - sizeof (((struct pthread *) 0)->res))
+
 } __attribute ((aligned (TCB_ALIGNMENT)));