1
0

patch-gnulib_lib_freadahead_h 603 B

123456789101112131415161718192021222324
  1. --- findutils-4.4.2.orig/gnulib/lib/freadahead.h 2009-05-10 23:23:57.000000000 +0200
  2. +++ findutils-4.4.2/gnulib/lib/freadahead.h 2014-03-23 16:27:43.000000000 +0100
  3. @@ -29,8 +29,21 @@ 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. +#endif
  18. +
  19. #ifdef __cplusplus
  20. }
  21. #endif