summaryrefslogtreecommitdiff
path: root/math/ruby-gsl/patches/patch-include_rb__gsl__common.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/ruby-gsl/patches/patch-include_rb__gsl__common.h')
-rw-r--r--math/ruby-gsl/patches/patch-include_rb__gsl__common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/math/ruby-gsl/patches/patch-include_rb__gsl__common.h b/math/ruby-gsl/patches/patch-include_rb__gsl__common.h
new file mode 100644
index 00000000000..2757045d631
--- /dev/null
+++ b/math/ruby-gsl/patches/patch-include_rb__gsl__common.h
@@ -0,0 +1,18 @@
+$NetBSD: patch-include_rb__gsl__common.h,v 1.1 2014/03/26 13:25:26 taca Exp $
+
+Fix for Ruby 2.1.
+
+--- include/rb_gsl_common.h.orig 2014-03-25 15:47:30.000000000 +0000
++++ include/rb_gsl_common.h
+@@ -14,6 +14,11 @@
+
+ #include "rb_gsl_config.h"
+ #include "ruby.h"
++#ifdef HAVE_RUBY_IO_H
++#include "ruby/version.h"
++#else
++#include "version.h"
++#endif
+ #include <ctype.h>
+ #include <gsl/gsl_errno.h>
+ #include <gsl/gsl_version.h>