diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-23 20:52:34 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-23 20:52:34 +0100 |
commit | 9e2fdf23756dc13ce89f0ca185a6223c02d3f14a (patch) | |
tree | 5d80a8872e75a637872b8987f0db21041e27263c /package/findutils/patches/patch-gnulib_lib_freadahead_h | |
parent | 15ce6d4a74407a920b82b0f7b7422a668a78f7c2 (diff) | |
parent | 52188df5ff2c0cc5a43230915d6bc09dd7c28a32 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/findutils/patches/patch-gnulib_lib_freadahead_h')
-rw-r--r-- | package/findutils/patches/patch-gnulib_lib_freadahead_h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/findutils/patches/patch-gnulib_lib_freadahead_h b/package/findutils/patches/patch-gnulib_lib_freadahead_h new file mode 100644 index 000000000..194232201 --- /dev/null +++ b/package/findutils/patches/patch-gnulib_lib_freadahead_h @@ -0,0 +1,24 @@ +--- findutils-4.4.2.orig/gnulib/lib/freadahead.h 2009-05-10 23:23:57.000000000 +0200 ++++ findutils-4.4.2/gnulib/lib/freadahead.h 2014-03-23 16:27:43.000000000 +0100 +@@ -29,8 +29,21 @@ extern "C" { + + STREAM must not be wide-character oriented. */ + ++#if HAVE___FREADAHEAD || (defined(__linux__) && !defined(__GLIBC__) && !defined(__UCLIBC__)) /* musl libc */ ++ ++#ifndef HAVE___FREADAHEAD ++#define HAVE___FREADAHEAD 1 ++#endif ++ ++# include <stdio_ext.h> ++# define freadahead(stream) __freadahead (stream) ++ ++#else ++ + extern size_t freadahead (FILE *stream); + ++#endif ++ + #ifdef __cplusplus + } + #endif |