X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffseeko.c;h=813e6abe7e8e41271400e23f0bbd44d0d58f6433;hb=fa3486514bd8f15f8eb4c49821d0356b52e5a335;hp=47beac42e6e3e593cdd331fb50832b35a3b40e36;hpb=1074f45959f35f8730a097fdc3d142039071ade7;p=gnulib.git diff --git a/lib/fseeko.c b/lib/fseeko.c index 47beac42e..813e6abe7 100644 --- a/lib/fseeko.c +++ b/lib/fseeko.c @@ -82,6 +82,11 @@ rpl_fseeko (FILE *fp, off_t offset, int whence) if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend) && fp->_Rback == fp->_Back + sizeof (fp->_Back) && fp->_Rsave == NULL) +#elif defined __MINT__ /* Atari FreeMiNT */ + if (fp->__bufp == fp->__buffer + && fp->__get_limit == fp->__bufp + && fp->__put_limit == fp->__bufp + && !fp->__pushed_back) #else #error "Please port gnulib fseeko.c to your platform! Look at the code in fpurge.c, then report this to bug-gnulib." #endif @@ -112,6 +117,9 @@ rpl_fseeko (FILE *fp, off_t offset, int whence) fp->_flags &= ~_IOEOF; #elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, mingw */ fp->_flag &= ~_IOEOF; +#elif defined __MINT__ /* Atari FreeMiNT */ + fp->__offset = pos; + fp->__eof = 0; #endif /* If we were not requested to position beyond end of file, we're done. */