diff options
Diffstat (limited to 'dlfcn/dladdr1.c')
-rw-r--r-- | dlfcn/dladdr1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dlfcn/dladdr1.c b/dlfcn/dladdr1.c index a8f10beed3..52ad443f52 100644 --- a/dlfcn/dladdr1.c +++ b/dlfcn/dladdr1.c @@ -1,5 +1,5 @@ /* Locate the shared object symbol nearest a given address. - Copyright (C) 2003-2014 Free Software Foundation, Inc. + Copyright (C) 2003-2015 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 @@ -18,7 +18,7 @@ #include <dlfcn.h> -#if !defined SHARED && defined IS_IN_libdl +#if !defined SHARED && IS_IN (libdl) int dladdr1 (const void *address, Dl_info *info, void **extra, int flags) @@ -32,7 +32,7 @@ int __dladdr1 (const void *address, Dl_info *info, void **extra, int flags) { # ifdef SHARED - if (__builtin_expect (_dlfcn_hook != NULL, 0)) + if (__glibc_unlikely (_dlfcn_hook != NULL)) return _dlfcn_hook->dladdr1 (address, info, extra, flags); # endif |