summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 09:38:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 09:38:21 +0000
commit3e7c24fe6e4899619e3cf1c1c79b96cd361a13e2 (patch)
tree0a51db3fafff7f504f761a101d5aa8f32af77c38
parent49cb5a78a14584de5932637d16fbd4ee0733d9d3 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--missing/close.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d55c4670d..f2fb649714 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/missing/close.c b/missing/close.c
index e836bf4906..8dc6928ffd 100644
--- a/missing/close.c
+++ b/missing/close.c
@@ -57,6 +57,7 @@ ruby_close(int s)
{
int err = errno;
errno = 0;
+#undef close
s = close(s);
if (errno == ECONNRESET) {
errno = 0;