mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
support mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9da4f78db4
commit
6d53b692ab
25 changed files with 327 additions and 228 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue