patch-gnulib_lib_freadahead_h 573 B

1234567891011121314151617181920212223
  1. --- findutils-4.4.2.orig/gnulib/lib/freadahead.h Sun May 10 23:23:57 2009
  2. +++ findutils-4.4.2/gnulib/lib/freadahead.h Sat May 24 15:13:05 2014
  3. @@ -29,7 +29,20 @@ extern "C" {
  4. STREAM must not be wide-character oriented. */
  5. +#if HAVE___FREADAHEAD || (defined(__linux__) && !defined(__GLIBC__) && !defined(__UCLIBC__)) /* musl libc */
  6. +
  7. +#ifndef HAVE___FREADAHEAD
  8. +#define HAVE___FREADAHEAD 1
  9. +#endif
  10. +
  11. +# include <stdio_ext.h>
  12. +# define freadahead(stream) __freadahead (stream)
  13. +
  14. +#else
  15. +
  16. extern size_t freadahead (FILE *stream);
  17. +
  18. +#endif
  19. #ifdef __cplusplus
  20. }