зеркало из https://github.com/github/ruby.git
* io.c (S_ISREG): need to define S_ISREG before it is used first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
df453bab06
Коммит
c7bdb0d8b8
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Jul 20 19:18:52 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (S_ISREG): need to define S_ISREG before it is used first.
|
||||||
|
|
||||||
Wed Jul 20 18:33:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Wed Jul 20 18:33:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* io.c (wsplit_p): patch for the environment where
|
* io.c (wsplit_p): patch for the environment where
|
||||||
|
|
8
io.c
8
io.c
|
@ -372,6 +372,10 @@ io_alloc(klass)
|
||||||
return (VALUE)io;
|
return (VALUE)io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef S_ISREG
|
||||||
|
# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
wsplit_p(OpenFile *fptr)
|
wsplit_p(OpenFile *fptr)
|
||||||
{
|
{
|
||||||
|
@ -1181,10 +1185,6 @@ rb_io_fread(ptr, len, f)
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef S_ISREG
|
|
||||||
# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SMALLBUF 100
|
#define SMALLBUF 100
|
||||||
|
|
||||||
static long
|
static long
|
||||||
|
|
Загрузка…
Ссылка в новой задаче