diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-13 16:13:31 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-13 16:13:31 +0000 |
commit | 6d53b692ab91c8817736cdec78b388e6e4990806 (patch) | |
tree | 3a84f886c14e2a9a8fe65c664b4f4805e2cbc2d4 /missing | |
parent | 9da4f78db46764be6dae5e7e83ff48cbecb3fb23 (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.h | 2 | ||||
-rw-r--r-- | missing/flock.c | 2 | ||||
-rw-r--r-- | missing/vsnprintf.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/missing/dir.h b/missing/dir.h index 2e61f04443..830239b3ea 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 0eaa8d8fdb..78576d438c 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 5865be7f9b..b29f14c0ec 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 |