--- glibc-2.3.3/sysdeps/unix/sysv/linux/nscd_setup_thread.c.orig 2004-09-17 13:55:36.000000000 -0500 +++ glibc-2.3.3/sysdeps/unix/sysv/linux/nscd_setup_thread.c 2004-09-17 14:00:31.000000000 -0500 @@ -23,6 +23,26 @@ #include #include +#ifndef __NR_set_tid_address +/* XXX For the time being... Once we can rely on the kernel headers + having the definition remove these lines. */ +#if defined __s390__ +# define __NR_set_tid_address 252 +#elif defined __ia64__ +# define __NR_set_tid_address 1233 +#elif defined __i386__ +# define __NR_set_tid_address 258 +#elif defined __x86_64__ +# define __NR_set_tid_address 218 +#elif defined __powerpc__ +# define __NR_set_tid_address 232 +#elif defined __sparc__ +# define __NR_set_tid_address 166 +#else +# error "define __NR_set_tid_address" +#endif +#endif + void setup_thread (struct database_dyn *db)