The stdio.in.h file replaces the fseek function when that isn't
requested.  There is a proper replacement for fseeko further down.  How
about the patch below?

/Simon

diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index 0e12d94..c4c2a8d 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -283,11 +283,10 @@ extern FILE * freopen (const char *filename, const char 
*mode, FILE *stream);
 
 #if @GNULIB_FSEEKO@
 # if @REPLACE_FSEEKO@
-/* Provide fseek, fseeko functions that are aware of a preceding
-   fflush(), and which detect pipes.  */
+/* Provide fseeko function that is aware of a preceding fflush(), and
+   which detect pipes.  */
 #  define fseeko rpl_fseeko
 extern int fseeko (FILE *fp, off_t offset, int whence);
-#  define fseek(fp, offset, whence) fseeko (fp, (off_t)(offset), whence)
 # endif
 #elif defined GNULIB_POSIXCHECK
 # undef fseeko


Reply via email to