summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-19 15:36:05 +0000
committerJim Meyering <jim@meyering.net>2000-04-19 15:36:05 +0000
commit98f5206a61037f2b0e46812aaac4eafb439d4fff (patch)
tree6ceaebab5b1569ff433e45e2e6df582d743317b6 /src/system.h
parent58be6ceff4a89c067ae89b105859c870110a8c87 (diff)
downloadcoreutils-98f5206a61037f2b0e46812aaac4eafb439d4fff.tar.xz
[__BEOS__]: Ignore O_BINARY and O_TEXT.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 0847f15a6..582fd7c51 100644
--- a/src/system.h
+++ b/src/system.h
@@ -159,6 +159,13 @@ extern int errno;
# 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. */
+# undef O_BINARY
+# undef O_TEXT
+#endif
+
#if O_BINARY
# ifndef __DJGPP__
# define setmode _setmode