summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-11 14:00:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-11 14:00:35 +0000
commitb04fa7b8e1877c871f0db8f4e6753712deeb6a29 (patch)
treecbc0a1870aa79229e1fdc5c84aafff0e2f95f6fc
parent48c5afeba09c3d3098bff1176b79a7b169469dfd (diff)
* include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--include/ruby/missing.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a18f9cb173..46167d4a762 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jun 11 22:59:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
+
Fri Jun 11 22:39:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/rubygems/install_update_options.rb
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index cde1baa5dd9..5b147de6db4 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -112,8 +112,10 @@ RUBY_EXTERN int isinf(double);
# endif
#endif
-#ifndef HAVE_ISNAN
+#ifndef isnan
+# ifndef HAVE_ISNAN
RUBY_EXTERN int isnan(double);
+# endif
#endif
/*