summaryrefslogtreecommitdiff
path: root/libio/fseeko.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/fseeko.c')
-rw-r--r--libio/fseeko.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/libio/fseeko.c b/libio/fseeko.c
index 288a48b94e..4d086c15d8 100644
--- a/libio/fseeko.c
+++ b/libio/fseeko.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2018 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
@@ -24,11 +24,15 @@
This exception applies to code released by its copyright holders
in files containing the exception. */
+/* We need to disable the redirect for __fseeko64 for the alias
+ definitions below to work. */
+#define __fseeko64 __fseeko64_disable
+
#include "libioP.h"
#include "stdio.h"
int
-fseeko (_IO_FILE *fp, off_t offset, int whence)
+__fseeko (FILE *fp, off_t offset, int whence)
{
int result;
CHECK_FILE (fp, -1);
@@ -37,7 +41,11 @@ fseeko (_IO_FILE *fp, off_t offset, int whence)
_IO_release_lock (fp);
return result;
}
+weak_alias (__fseeko, fseeko)
#ifdef __OFF_T_MATCHES_OFF64_T
-weak_alias (fseeko, fseeko64)
+weak_alias (__fseeko, fseeko64)
+# undef __fseeko64
+strong_alias (__fseeko, __fseeko64)
+libc_hidden_ver (__fseeko, __fseeko64)
#endif