summaryrefslogtreecommitdiffstats
path: root/text-utils/pg.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:02 +0100
committerKarel Zak2006-12-07 00:26:02 +0100
commit0e6f4a203d8715710ff09683390be2897cca3804 (patch)
tree982a4e50be23b6c30245c61bfed170c592b34e41 /text-utils/pg.c
parentImported from util-linux-2.11u tarball. (diff)
downloadkernel-qcow2-util-linux-0e6f4a203d8715710ff09683390be2897cca3804.tar.gz
kernel-qcow2-util-linux-0e6f4a203d8715710ff09683390be2897cca3804.tar.xz
kernel-qcow2-util-linux-0e6f4a203d8715710ff09683390be2897cca3804.zip
Imported from util-linux-2.11v tarball.
Diffstat (limited to 'text-utils/pg.c')
-rw-r--r--text-utils/pg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c
index 57290756c..177138389 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -173,10 +173,17 @@ See pg(1) for more information.\n\
-------------------------------------------------------\n";
#ifdef HAVE_fseeko
+#if defined (_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS) == 64
+ extern int fseeko64(FILE *f, off_t off, int whence);
+ extern off_t ftello64(FILE *f);
+ #define my_fseeko fseeko64
+ #define my_ftello ftello64
+#else
extern int fseeko(FILE *f, off_t off, int whence);
extern off_t ftello(FILE *f);
#define my_fseeko fseeko
#define my_ftello ftello
+#endif
#else
static int my_fseeko(FILE *f, off_t off, int whence) {
return fseek(f, (long) off, whence);