summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-11 14:33:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-11 14:33:14 +0000
commit772bf6a09dabb907d5599cd1b05494c174e5198d (patch)
tree852095faac15bf2d497b71c3f3e0f8056eb91709 /perl.h
parent06313c6a15bfdcf10349b63b4c9be1017beaeab3 (diff)
downloadperl-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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index c3720a4741..8f759d06c1 100644
--- a/perl.h
+++ b/perl.h
@@ -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