diff options
Diffstat (limited to 'resolv/gai_cancel.c')
-rw-r--r-- | resolv/gai_cancel.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/resolv/gai_cancel.c b/resolv/gai_cancel.c index 5d398ff..aa6ba03 100644 --- a/resolv/gai_cancel.c +++ b/resolv/gai_cancel.c @@ -18,18 +18,18 @@ #include <netdb.h> #include <pthread.h> - +#include <shlib-compat.h> #include <gai_misc.h> int -gai_cancel (struct gaicb *gaicbp) +__gai_cancel (struct gaicb *gaicbp) { int result = 0; int status; /* Request the mutex. */ - pthread_mutex_lock (&__gai_requests_mutex); + __pthread_mutex_lock (&__gai_requests_mutex); /* Find the request among those queued but not yet running. */ status = __gai_remove_request (gaicbp); @@ -41,7 +41,16 @@ gai_cancel (struct gaicb *gaicbp) result = EAI_ALLDONE; /* Release the mutex. */ - pthread_mutex_unlock (&__gai_requests_mutex); + __pthread_mutex_unlock (&__gai_requests_mutex); return result; } +#if PTHREAD_IN_LIBC +versioned_symbol (libc, __gai_cancel, gai_cancel, GLIBC_2_34); + +# if OTHER_SHLIB_COMPAT (libanl, GLIBC_2_2_3, GLIBC_2_34) +compat_symbol (libanl, __gai_cancel, gai_cancel, GLIBC_2_2_3); +# endif +#else /* !PTHREAD_IN_LIBC */ +strong_alias (__gai_cancel, gai_cancel) +#endif /* !PTHREAD_IN_LIBC */ |