patch-lib_fseeko_c 930 B

123456789101112131415161718
  1. --- gzip-1.6.orig/lib/fseeko.c 2013-04-07 03:59:54.000000000 +0200
  2. +++ gzip-1.6/lib/fseeko.c 2016-01-14 16:58:56.000000000 +0100
  3. @@ -99,8 +99,14 @@ fseeko (FILE *fp, off_t offset, int when
  4. #elif defined EPLAN9 /* Plan9 */
  5. if (fp->rp == fp->buf
  6. && fp->wp == fp->buf)
  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. /* We get here when an fflush() call immediately preceded this one (or