From 3452aba811b77932788ac10de324653140bca936 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 25 Jul 2000 22:19:16 +0000 Subject: Update. 2000-07-25 Mark Kettenis * nss/nss_files/files-netgrp.c (strip_whitespace): New function. (_nss_netgroup_parseline): Use strip_whitespace to strip off any leading and trailing spaces from host, user and domain name. 2000-07-25 Jes Sorensen * csu/defs.awk: Add support for need_endp. 2000-07-25 Mark Kettenis * resolv/resolv.h: Remove __P from res_send_qhook and res_send_rhook typedefs. 2000-07-25 Bruno Haible * intl/tst-translit.c (main): Unset OUTPUT_CHARSET. --- linuxthreads/internals.h | 5 +---- linuxthreads/pthread.c | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'linuxthreads') diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 7335611..2ed4929 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -20,16 +20,13 @@ /* Includes */ #include +#include #include #include #include #include #include /* for _LIBC_TSD_KEY_N */ -#define __RES_PTHREAD_INTERNAL -#include /* for per-thread resolver context */ - - #include "pt-machine.h" #include "semaphore.h" #include "../linuxthreads_db/thread_dbP.h" diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index 1d93366..3a669c8 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -30,6 +30,12 @@ #include "spinlock.h" #include "restart.h" +/* We need the global/static resolver state here. */ +#include +#undef _res + +extern struct __res_state _res; + /* Sanity check. */ #if __ASSUME_REALTIME_SIGNALS && !defined __SIGRTMIN # error "This must not happen; new kernel assumed but old headers" -- cgit v1.1