mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* missing/close.c: undef the macro "close" to prevent infinite
recursion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
49cb5a78a1
commit
3e7c24fe6e
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Aug 7 18:37:39 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* missing/close.c: undef the macro "close" to prevent infinite
|
||||
recursion.
|
||||
|
||||
Sat Aug 7 18:20:41 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/pathname/pathname.c (path_lchown): Pathname#lchown translated
|
||||
|
|
|
@ -57,6 +57,7 @@ ruby_close(int s)
|
|||
{
|
||||
int err = errno;
|
||||
errno = 0;
|
||||
#undef close
|
||||
s = close(s);
|
||||
if (errno == ECONNRESET) {
|
||||
errno = 0;
|
||||
|
|
Loading…
Reference in a new issue