summaryrefslogtreecommitdiff
path: root/libc/stdio/fsetpos.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-13 21:38:57 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-13 21:38:57 +0000
commitf32600208f4e9db972eb47f7d4959994b31199e6 (patch)
tree2a9b75b74b8cf126b816ee32a36727977b5c3de3 /libc/stdio/fsetpos.c
parent01015a4321d2af6b665a90a20ea349f02bde6f81 (diff)
Convert all users of earlier hiddens
Diffstat (limited to 'libc/stdio/fsetpos.c')
-rw-r--r--libc/stdio/fsetpos.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/stdio/fsetpos.c b/libc/stdio/fsetpos.c
index 2b02f25e0..f33043f3b 100644
--- a/libc/stdio/fsetpos.c
+++ b/libc/stdio/fsetpos.c
@@ -7,6 +7,10 @@
#include "_stdio.h"
+#ifndef __DO_LARGEFILE
+#define FSEEK __fseek
+#endif
+
int fsetpos(FILE *stream, register const fpos_t *pos)
{
#ifdef __STDIO_MBSTATE
@@ -16,7 +20,7 @@ int fsetpos(FILE *stream, register const fpos_t *pos)
__STDIO_AUTO_THREADLOCK(stream);
- if ((retval = fseek(stream, pos->__pos, SEEK_SET)) == 0) {
+ if ((retval = FSEEK(stream, pos->__pos, SEEK_SET)) == 0) {
__COPY_MBSTATE(&(stream->__state), &(pos->__mbstate));
stream->__ungot_width[0]= pos->__mblen_pending;
}
@@ -27,7 +31,7 @@ int fsetpos(FILE *stream, register const fpos_t *pos)
#else
- return fseek(stream, pos->__pos, SEEK_SET);
+ return FSEEK(stream, pos->__pos, SEEK_SET);
#endif
}