summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8a18f9cb17..46167d4a76 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 cde1baa5dd..5b147de6db 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
/*