From d063d164335938d557460bebaa7cfe388157b627 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 10 Sep 2011 16:50:28 -0400 Subject: Remove support for !USE___THREAD --- resolv/res-state.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'resolv/res-state.c') diff --git a/resolv/res-state.c b/resolv/res-state.c index e327e34f59..b0aa22cfc2 100644 --- a/resolv/res-state.c +++ b/resolv/res-state.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 97, 98, 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1996, 97, 98, 2002, 2003, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,27 +19,10 @@ #include #include -#if ! USE___THREAD - -# undef _res -extern struct __res_state _res; - -/* When threaded, _res may be a per-thread variable. */ -struct __res_state * -weak_const_function -__res_state (void) -{ - return &_res; -} - -#else struct __res_state * __res_state (void) { return __resp; } - -#endif - libc_hidden_def (__res_state) -- cgit v1.2.1