bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/4] O_BINARY and O_TEXT are defined and have no effect in


From: Ingo Weinhold
Subject: [PATCH 1/4] O_BINARY and O_TEXT are defined and have no effect in
Date: Wed, 05 Nov 2008 04:15:42 +0100
User-agent: Beam 1.1.2

Signed-off-by: Ingo Weinhold <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]