From af3878dff0963da299b6b54d3a76f9c1a68aac27 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 23 Apr 1998 22:45:20 +0000 Subject: (dlerror): Don't assume that __libc_internal_tsd_get is defined. __libc_getspecific is already well-protected, so just use it directly. --- elf/dlerror.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'elf/dlerror.c') diff --git a/elf/dlerror.c b/elf/dlerror.c index ba25611bbb..4716bdd272 100644 --- a/elf/dlerror.c +++ b/elf/dlerror.c @@ -56,13 +56,8 @@ dlerror (void) } /* Get error string. */ - if (__libc_internal_tsd_get != NULL) - { - result = (struct dl_action_result *) __libc_getspecific (key); - if (result == NULL) - result = &last_result; - } - else + result = (struct dl_action_result *) __libc_getspecific (key); + if (result == NULL) result = &last_result; if (! result->errstring) -- cgit 1.4.1