summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-13 16:13:31 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-13 16:13:31 +0000
commit6d53b692ab91c8817736cdec78b388e6e4990806 (patch)
tree3a84f886c14e2a9a8fe65c664b4f4805e2cbc2d4 /missing
parent9da4f78db46764be6dae5e7e83ff48cbecb3fb23 (diff)
support mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/dir.h2
-rw-r--r--missing/flock.c2
-rw-r--r--missing/vsnprintf.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/missing/dir.h b/missing/dir.h
index 2e61f04..830239b 100644
--- a/missing/dir.h
+++ b/missing/dir.h
@@ -28,6 +28,7 @@
#ifndef __DIR_INCLUDED
#define __DIR_INCLUDED
+#if !defined __MINGW32__
/*Directory entry size */
#ifdef DIRSIZ
#undef DIRSIZ
@@ -60,4 +61,5 @@ void seekdir(DIR *dirp,long loc);
void rewinddir(DIR *dirp);
void closedir(DIR *dirp);
+#endif
#endif /* __DIR_INCLUDED */
diff --git a/missing/flock.c b/missing/flock.c
index 0eaa8d8..78576d4 100644
--- a/missing/flock.c
+++ b/missing/flock.c
@@ -126,7 +126,7 @@ flock(fd, operation)
return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock);
}
-#else
+#elif !defined NT
int
flock(fd, operation)
int fd;
diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c
index 5865be7..b29f14c 100644
--- a/missing/vsnprintf.c
+++ b/missing/vsnprintf.c
@@ -101,7 +101,7 @@
#define __const
#endif /* People who don't like const sys_error */
-#ifdef NT
+#if defined NT && !defined __MINGW32__
typedef long size_t;
#endif