Signed-off-by: Ingo Weinhold <[EMAIL PROTECTED]>
---
 lib/binary-io.h |    5 +++--
 lib/fcntl.in.h  |    4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/binary-io.h b/lib/binary-io.h
index 9bfddf1..518e464 100644
--- a/lib/binary-io.h
+++ b/lib/binary-io.h
@@ -30,8 +30,9 @@
 # define O_BINARY _O_BINARY
 # define O_TEXT _O_TEXT
 #endif
-#ifdef __BEOS__
-  /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect.  */
+#if defined __BEOS__ || defined __HAIKU__
+  /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect.
+     Same for Haiku R1. */
 # undef O_BINARY
 # undef O_TEXT
 #endif
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index af86c83..e8bfff5 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -127,8 +127,8 @@ extern void _gl_register_fd (int fd, const char 
*filename);
 # define O_TEXT _O_TEXT
 #endif
 
-#ifdef __BEOS__
-  /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect.  */
+#if defined __BEOS__ || defined __HAIKU__
+  /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. Same for 
Haiku. */
 # undef O_BINARY
 # undef O_TEXT
 #endif
-- 
1.5.2.4



Reply via email to