aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ruby/files/gcc44.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ruby/files/gcc44.patch')
-rw-r--r--recipes/ruby/files/gcc44.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/ruby/files/gcc44.patch b/recipes/ruby/files/gcc44.patch
new file mode 100644
index 0000000000..dc5a608381
--- /dev/null
+++ b/recipes/ruby/files/gcc44.patch
@@ -0,0 +1,19 @@
+---
+ math.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- ruby-1.8.5.orig/math.c
++++ ruby-1.8.5/math.c
+@@ -32,11 +32,11 @@ domain_check(x, msg)
+ rb_sys_fail(msg);
+ }
+ if (isnan(x)) {
+ #if defined(EDOM)
+ errno = EDOM;
+-#elif define(ERANGE)
++#elif defined(ERANGE)
+ errno = ERANGE;
+ #endif
+ continue;
+ }
+ break;