summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-26 03:05:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-26 03:05:25 +0000
commit201d99cc5f0c5f9da671245befe12e4036ff0c99 (patch)
tree47cbfc37252d1e1a5deea64577c136f44bc36fbc /include/ruby/missing.h
parent5edb56b83c350724dd084cfad37afdc763dad0be (diff)
* configure.in: define BROKEN_CLOSE on FreeBSD.
This fixes build failure on MSVC. [ruby-core:31481] * include/ruby/ruby.h, include/ruby/missing.h: use BROKEN_CLOSE for replacing close(2). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 327e0a847da..8e4ffae72af 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -175,7 +175,7 @@ RUBY_EXTERN int signbit(double x);
RUBY_EXTERN int ffs(int);
#endif
-#ifndef HAVE_CLOSE
+#ifdef BROKEN_CLOSE
#include <sys/types.h>
#include <sys/socket.h>
RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *);