about summary refs log tree commit diff
path: root/libio/ftello.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/ftello.c')
-rw-r--r--libio/ftello.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libio/ftello.c b/libio/ftello.c
index 5405821b45..5a3caf4ad9 100644
--- a/libio/ftello.c
+++ b/libio/ftello.c
@@ -24,12 +24,15 @@
    This exception applies to code released by its copyright holders
    in files containing the exception.  */
 
+/* We need to disable the redirect for __ftello64 for the alias
+   definitions below to work.  */
+#define __ftello64 __ftello64_disable
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <libioP.h>
 #include <errno.h>
 
-
 off_t
 __ftello (FILE *fp)
 {
@@ -61,4 +64,7 @@ weak_alias (__ftello, ftello)
 
 #ifdef __OFF_T_MATCHES_OFF64_T
 weak_alias (__ftello, ftello64)
+# undef __ftello64
+strong_alias (__ftello, __ftello64)
+libc_hidden_ver (__ftello, __ftello64)
 #endif