From 9d263d72848fb561e104a21da3ffccf791078f2a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 14 Dec 2002 19:49:13 +0000 Subject: Update. 2002-12-14 Jakub Jelinek * dirent/bug-readdir1.c: Include unistd.h. --- nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c') diff --git a/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c b/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c index 80b6dbcb4f..bf0551a7e4 100644 --- a/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c +++ b/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c @@ -17,8 +17,10 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include #include #include "fork.h" +#include #include @@ -38,4 +40,15 @@ __libc_pthread_init (ptr, reclaim) /* The fork handler needed by libpthread. */ list_add_tail (&pthread_child_handler.list, &__fork_child_list); + + /* We have a macro which is used in asm code describing data layout. + Make sure it does not get out of date. */ + if (offsetof (struct pthread, header.data.multiple_threads) + != MULTIPLE_THREADS_OFFSET) + { +#define str_n_len(str) str, sizeof (str) - 1 + __libc_write (STDERR_FILENO, + str_n_len ("*** MULTIPLE_THREADS_OFFSET out of date\n")); + _exit (1); + } } -- cgit v1.2.3