X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlio.c;h=a1af8701322c64e0df264ba0d84dee2a1be60be1;hb=7e3cfbc1cd50bd5f1a5169e03634c44e2dbcb2a1;hp=314881e57eab894207c87f1a9b5c749c8dcb0510;hpb=0f4eea8fa1779e08575278392ed398ffeda6dcd2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlio.c b/perlio.c index 314881e..a1af870 100644 --- a/perlio.c +++ b/perlio.c @@ -416,23 +416,30 @@ va_list ap; return vfprintf(f,fmt,ap); } - #undef PerlIO_tell -long +Off_t PerlIO_tell(f) PerlIO *f; { +#ifdef HAS_FTELLO + return ftello(f); +#else return ftell(f); +#endif } #undef PerlIO_seek int PerlIO_seek(f,offset,whence) PerlIO *f; -off_t offset; +Off_t offset; int whence; { +#ifdef HAS_FSEEKO + return fseeko(f,offset,whence); +#else return fseek(f,offset,whence); +#endif } #undef PerlIO_rewind