[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] O_BINARY and O_TEXT are defined and have no effect in
From: |
Bruno Haible |
Subject: |
Re: [PATCH 1/4] O_BINARY and O_TEXT are defined and have no effect in |
Date: |
Mon, 10 Nov 2008 02:58:11 +0100 |
User-agent: |
KMail/1.5.4 |
> Signed-off-by: Ingo Weinhold <address@hidden>
> ---
> lib/binary-io.h | 5 +++--
> lib/fcntl.in.h | 4 ++--
> 2 files changed, 5 insertions(+), 4 deletions(-)
Thanks. I will apply it like this, when savannah is back:
2008-11-10 Ingo Weinhold <address@hidden>
* lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
* lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
--- lib/binary-io.h.orig 2008-11-10 02:54:40.000000000 +0100
+++ lib/binary-io.h 2008-11-10 02:50:12.000000000 +0100
@@ -30,8 +30,8 @@
# 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 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY
# undef O_TEXT
#endif
--- lib/fcntl.in.h.orig 2008-11-10 02:54:41.000000000 +0100
+++ lib/fcntl.in.h 2008-11-10 02:50:40.000000000 +0100
@@ -127,8 +127,8 @@
# 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 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY
# undef O_TEXT
#endif