[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/4] Add support for Haiku.
From: |
Ingo Weinhold |
Subject: |
[PATCH 4/4] Add support for Haiku. |
Date: |
Wed, 05 Nov 2008 04:15:48 +0100 |
User-agent: |
Beam 1.1.2 |
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 <address@hidden>
---
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
- [PATCH 4/4] Add support for Haiku.,
Ingo Weinhold <=