summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fsetpos.c
diff options
context:
space:
mode:
authorDmitrij Tejblum <dt@FreeBSD.org>1999-02-08 21:32:38 +0000
committerDmitrij Tejblum <dt@FreeBSD.org>1999-02-08 21:32:38 +0000
commit7307d07db6d636b8690c330a65b857dbe1738364 (patch)
treeff7ef06c4da289753c0ab5f95214f648a3626b95 /lib/libc/stdio/fsetpos.c
parent0d35e40d61a162640b2963d3647050e33c66fab8 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/fsetpos.c')
-rw-r--r--lib/libc/stdio/fsetpos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdio/fsetpos.c b/lib/libc/stdio/fsetpos.c
index d521a2054871..72a4bf2cd8af 100644
--- a/lib/libc/stdio/fsetpos.c
+++ b/lib/libc/stdio/fsetpos.c
@@ -39,9 +39,10 @@
static char sccsid[] = "@(#)fsetpos.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: fsetpos.c,v 1.5 1997/02/22 15:02:06 peter Exp $";
#endif /* LIBC_SCCS and not lint */
+#include <sys/types.h>
#include <stdio.h>
/*
@@ -52,5 +53,5 @@ fsetpos(iop, pos)
FILE *iop;
const fpos_t *pos;
{
- return (fseek(iop, (long)*pos, SEEK_SET));
+ return (fseeko(iop, (off_t)*pos, SEEK_SET));
}