Index: uspace/lib/c/generic/io/io.c
===================================================================
--- uspace/lib/c/generic/io/io.c	(revision 889429381884087cf05db438ada2a0fc8e20ee3b)
+++ uspace/lib/c/generic/io/io.c	(revision 456c086ff4eec09f0e755f56cd28921657993534)
@@ -793,5 +793,5 @@
 }
 
-int fseek(FILE *stream, off64_t offset, int whence)
+int fseek(FILE *stream, long offset, int whence)
 {
 	int rc;
@@ -831,8 +831,8 @@
 }
 
-off64_t ftell(FILE *stream)
+long ftell(FILE *stream)
 {
 	/* The native position is too large for the C99-ish interface. */
-	if (stream->pos - stream->ungetc_chars > INT64_MAX)
+	if (stream->pos - stream->ungetc_chars > LONG_MAX)
 		return EOF;
 
Index: uspace/lib/c/include/stdio.h
===================================================================
--- uspace/lib/c/include/stdio.h	(revision 889429381884087cf05db438ada2a0fc8e20ee3b)
+++ uspace/lib/c/include/stdio.h	(revision 456c086ff4eec09f0e755f56cd28921657993534)
@@ -140,7 +140,7 @@
 extern size_t fwrite(const void *, size_t, size_t, FILE *);
 
-extern int fseek(FILE *, off64_t, int);
+extern int fseek(FILE *, long, int);
 extern void rewind(FILE *);
-extern off64_t ftell(FILE *);
+extern long ftell(FILE *);
 extern int feof(FILE *);
 extern int fileno(FILE *);
