* libI77/fio.h (FSEEK): Enforce type of second parameter to be
off_t when prototype is missing from system headers for the
non-standard function.
From-SVN: r48546
+2002-01-04 Loren J. Rittle <ljrittle@acm.org>
+
+ * libI77/fio.h (FSEEK): Enforce type of second parameter to be
+ off_t when prototype is missing from system headers for the
+ non-standard function.
+
2002-01-03 Loren J. Rittle <ljrittle@acm.org>
* Makefile.in ($(LIBG2C):): Let libtool decide when to add -lc.
/* Only use fseeko/ftello if they are both there. */
#if defined (HAVE_FSEEKO) && defined (HAVE_FTELLO)
-#define FSEEK fseeko
+/* The cast helps in any case where the fseeko() prototype is somehow missing
+ (perhaps because _POSIX_SOURCE is defined and the system headers try
+ to keep a clean namespace in that case) even though the autoconf test
+ found the non-standard function via its trivial link test. */
+#define FSEEK(a,b,c) fseeko(a, (off_t) b, c)
#define FTELL ftello
#else
#define FSEEK fseek