summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-18 16:46:18 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-18 16:46:18 +0000
commita85a9d31db29e366cce9efb9c3fab24e750ed498 (patch)
tree4eb2de7ddf71d703195956d657b9f3fc521131cf /ext
parent468df0e2d45dc4447019fb9dc15747dbf008f938 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/sdbm/_sdbm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/sdbm/_sdbm.c b/ext/sdbm/_sdbm.c
index a07cc55..7a31472 100644
--- a/ext/sdbm/_sdbm.c
+++ b/ext/sdbm/_sdbm.c
@@ -206,9 +206,7 @@ int mode;
* open the files in sequence, and stat the dirfile.
* If we fail anywhere, undo everything, return NULL.
*/
-#ifdef MSDOS
flags |= O_BINARY;
-#endif
if ((db->pagf = open(pagname, flags, mode)) > -1) {
if ((db->dirf = open(dirname, flags, mode)) > -1) {
/*
@@ -361,7 +359,7 @@ int need;
{
long newp;
char twin[PBLKSIZ];
-#ifdef MSDOS
+#if defined MSDOS || (defined _WIN32 && !defined __CYGWIN__)
char zer[PBLKSIZ];
long oldtail;
#endif
@@ -388,7 +386,7 @@ int need;
* here, as sdbm_store will do so, after it inserts the incoming pair.
*/
-#ifdef MSDOS
+#if defined MSDOS || (defined _WIN32 && !defined __CYGWIN__)
/*
* Fill hole with 0 if made it.
* (hole is NOT read as 0)