summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libI77/fio.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libf2c/libI77/fio.h')
-rw-r--r--contrib/libf2c/libI77/fio.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/libf2c/libI77/fio.h b/contrib/libf2c/libI77/fio.h
index 846351d..8c6d274 100644
--- a/contrib/libf2c/libI77/fio.h
+++ b/contrib/libf2c/libI77/fio.h
@@ -1,3 +1,4 @@
+#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#ifndef NULL
@@ -14,6 +15,16 @@
#define SEEK_END 2
#endif
+/* Only use fseeko/ftello if they are both there. */
+
+#if defined (HAVE_FSEEKO) && defined (HAVE_FTELLO)
+#define FSEEK fseeko
+#define FTELL ftello
+#else
+#define FSEEK fseek
+#define FTELL ftell
+#endif
+
#if defined (MSDOS) && !defined (GO32)
#ifndef NON_UNIX_STDIO
#define NON_UNIX_STDIO
OpenPOWER on IntegriCloud