diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-11 14:33:14 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-11 14:33:14 +0000 |
commit | 772bf6a09dabb907d5599cd1b05494c174e5198d (patch) | |
tree | 852095faac15bf2d497b71c3f3e0f8056eb91709 /perl.h | |
parent | 06313c6a15bfdcf10349b63b4c9be1017beaeab3 (diff) | |
download | perl-772bf6a09dabb907d5599cd1b05494c174e5198d.tar.gz |
Try to handle platforms that have O_TEXT != O_BINARY but
which are not DOSish, BeOS being one of such platforms.
Ideally this should be a Configure test, not a hardwired
cpp symbol test...
p4raw-id: //depot/perl@13621
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -3925,6 +3925,18 @@ int flock(int fd, int op); # define O_TEXT 0 #endif +#if O_TEXT != O_BINARY + /* If you have different O_TEXT and O_BINARY and you are a CLRF shop, + * that is, you are somehow DOSish. */ +# if !defined(__BEOS__) +# define PERLIO_CLRF 1 +# else + /* If you have O_TEXT different from your O_BINARY but you still are + * not a CRLF shop. */ +# undef PERLIO_CLRF +# endif +#endif + #ifdef IAMSUID #ifdef I_SYS_STATVFS |