summaryrefslogtreecommitdiff
path: root/ext/SDBM_File/sdbm/sdbm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/SDBM_File/sdbm/sdbm.c')
-rw-r--r--ext/SDBM_File/sdbm/sdbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c
index d4836be671..a62334c45e 100644
--- a/ext/SDBM_File/sdbm/sdbm.c
+++ b/ext/SDBM_File/sdbm/sdbm.c
@@ -135,7 +135,7 @@ int mode;
* open the files in sequence, and stat the dirfile.
* If we fail anywhere, undo everything, return NULL.
*/
-# ifdef OS2
+#if defined(OS2) || defined(MSDOS)
flags |= O_BINARY;
# endif
if ((db->pagf = open(pagname, flags, mode)) > -1) {