summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/descr.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/descr.h')
-rw-r--r--libpthread/nptl/descr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpthread/nptl/descr.h b/libpthread/nptl/descr.h
index 454bb2a54..77251d5e4 100644
--- a/libpthread/nptl/descr.h
+++ b/libpthread/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)));