summaryrefslogtreecommitdiff
path: root/package/ruby/patches/patch-missing_isinf_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-24 16:42:26 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-24 16:42:26 +0200
commitcbdfc3b84ec5a246b83fb991fd865754b841f9c5 (patch)
tree19c96c6cd337984249264b43d548100260a3e857 /package/ruby/patches/patch-missing_isinf_c
parent36b8021619c7f7a8ec6fee10e3bfa6e7ff8d9d48 (diff)
parentba1dbc96f36abce072ac39a33bb0bd85e12a4e97 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/ruby/patches/patch-missing_isinf_c')
-rw-r--r--package/ruby/patches/patch-missing_isinf_c19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/ruby/patches/patch-missing_isinf_c b/package/ruby/patches/patch-missing_isinf_c
new file mode 100644
index 000000000..6029850b9
--- /dev/null
+++ b/package/ruby/patches/patch-missing_isinf_c
@@ -0,0 +1,19 @@
+--- ruby-2.0.0-p247.orig/missing/isinf.c 2011-05-15 13:55:52.000000000 +0200
++++ ruby-2.0.0-p247/missing/isinf.c 2013-10-24 09:18:55.000000000 +0200
+@@ -5,6 +5,7 @@
+ #define _IEEE 1
+ #include <nan.h>
+
++
+ int
+ isinf(double n)
+ {
+@@ -52,6 +53,8 @@ static double zero(void) { return 0.0; }
+ static double one (void) { return 1.0; }
+ static double inf (void) { return one() / zero(); }
+
++#undef isinf
++
+ int
+ isinf(double n)
+ {