summaryrefslogtreecommitdiffstats
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
commit3d9582b7f1fe2647d0d68ab55ccc2223c7cbd389 (patch)
tree3a84f886c14e2a9a8fe65c664b4f4805e2cbc2d4 /missing
parenta6dcd4ff38476c301f3385a3999fb6452bd462c7 (diff)
downloadruby-3d9582b7f1fe2647d0d68ab55ccc2223c7cbd389.tar.gz
ruby-3d9582b7f1fe2647d0d68ab55ccc2223c7cbd389.tar.xz
ruby-3d9582b7f1fe2647d0d68ab55ccc2223c7cbd389.zip
support mingw32.
git-svn-id: http://svn.ruby-lang.org/repos/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 2e61f0444..830239b3e 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 0eaa8d8fd..78576d438 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 5865be7f9..b29f14c0e 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