patch-gnulib_lib_fseeko_c 981 B

123456789101112131415161718
  1. --- findutils-4.4.2.orig/gnulib/lib/fseeko.c Sun May 10 23:25:10 2009
  2. +++ findutils-4.4.2/gnulib/lib/fseeko.c Sat May 24 15:13:05 2014
  3. @@ -94,8 +94,14 @@ rpl_fseeko (FILE *fp, off_t offset, int whence)
  4. if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend)
  5. && fp->_Rback == fp->_Back + sizeof (fp->_Back)
  6. && fp->_Rsave == NULL)
  7. +#elif FUNC_FFLUSH_STDIN < 0 && 200809 <= _POSIX_VERSION
  8. + /* Cross-compiling to some other system advertising conformance to
  9. + POSIX.1-2008 or later. Assume fseeko and fflush work as advertised.
  10. + If this assumption is incorrect, please report the bug to
  11. + bug-gnulib. */
  12. + if (0)
  13. #else
  14. - #error "Please port gnulib fseeko.c to your platform! Look at the code in fpurge.c, then report this to bug-gnulib."
  15. + #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
  16. #endif
  17. {
  18. off_t pos = lseek (fileno (fp), offset, whence);