about summary refs log tree commit diff
path: root/resolv/res_libc.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res_libc.c')
-rw-r--r--resolv/res_libc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/res_libc.c b/resolv/res_libc.c
index 67a3467aa7..9bd4e5c747 100644
--- a/resolv/res_libc.c
+++ b/resolv/res_libc.c
@@ -92,7 +92,8 @@ compat_symbol (libc, _res, _res, GLIBC_2_0);
 
 #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2)
 # undef res_init
-strong_alias (__res_init, __res_init_weak);
+extern int __res_init_weak (void);
 weak_extern (__res_init_weak);
+strong_alias (__res_init, __res_init_weak);
 compat_symbol (libc, __res_init_weak, res_init, GLIBC_2_0);
 #endif