diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 7 |
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 |