Use the glibc 1 implementation in Haiku too. Haiku actually uses a newer glibc version, but the libio interface has been butchered to be binary compatible with the glibc 1 used by BeOS.
Signed-off-by: Ingo Weinhold <[EMAIL PROTECTED]> --- lib/freadahead.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/freadahead.c b/lib/freadahead.c index 2dcf81c..084f7fd 100644 --- a/lib/freadahead.c +++ b/lib/freadahead.c @@ -25,7 +25,8 @@ size_t freadahead (FILE *fp) { -#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Linux libc5 */ +#if defined _IO_ferror_unlocked || __GNU_LIBRARY__ == 1 || defined __HAIKU__ + /* GNU libc, BeOS, Linux libc5, Haiku */ if (fp->_IO_write_ptr > fp->_IO_write_base) return 0; return (fp->_IO_read_end - fp->_IO_read_ptr) -- 1.5.2.4