summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-17 23:47:50 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-17 23:47:50 +0000
commitf04b1e1f0f86cce932ede5b5a088c0ec4712ce34 (patch)
treed92265f86e08f4d68637bb94fff8395f96c41980 /sysdeps/unix
parentf731666f48ff8545cda808739630bd474f024ce8 (diff)
downloadglibc-f04b1e1f0f86cce932ede5b5a088c0ec4712ce34.tar.gz
glibc-f04b1e1f0f86cce932ede5b5a088c0ec4712ce34.tar.xz
glibc-f04b1e1f0f86cce932ede5b5a088c0ec4712ce34.zip
[BZ #390]
Update.
2004-09-18  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
	Do nothing if __NR_set_tid_address is not defined.  [BZ #390]

2004-09-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
	in case it is available.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/nscd_setup_thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/nscd_setup_thread.c b/sysdeps/unix/sysv/linux/nscd_setup_thread.c
index 3496f02dca..7d1bfd8dd1 100644
--- a/sysdeps/unix/sysv/linux/nscd_setup_thread.c
+++ b/sysdeps/unix/sysv/linux/nscd_setup_thread.c
@@ -27,6 +27,7 @@
 void
 setup_thread (struct database_dyn *db)
 {
+#ifdef __NR_set_tid_address
   /* Only supported when NPTL is used.  */
   char buf[100];
   if (confstr (_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof (buf)) >= sizeof (buf)
@@ -44,4 +45,5 @@ setup_thread (struct database_dyn *db)
        So, set the field to a nonzero value which indicates that nscd
        is certainly running and clients can skip the test.  */
     db->head->nscd_certainly_running = 1;
+#endif
 }