summaryrefslogtreecommitdiff
path: root/math/py-rpy/files/patch-src-RPy.h
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2019-05-03 17:58:32 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2019-05-03 17:58:32 +0000
commitacfb84ddf9dc7c13d2a295634ec14900f4c7401a (patch)
treea7167a31fc01012e5664f693c7ba13b9ba326f54 /math/py-rpy/files/patch-src-RPy.h
parent- Update to version 0.9.2 and make it build on both amd64 and i386 by (diff)
Move math/rpy -> math/py-rpy
Diffstat (limited to 'math/py-rpy/files/patch-src-RPy.h')
-rw-r--r--math/py-rpy/files/patch-src-RPy.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/math/py-rpy/files/patch-src-RPy.h b/math/py-rpy/files/patch-src-RPy.h
new file mode 100644
index 000000000000..a795ee3d31c1
--- /dev/null
+++ b/math/py-rpy/files/patch-src-RPy.h
@@ -0,0 +1,27 @@
+--- src/RPy.h
++++ src/RPy.h
+@@ -52,6 +52,13 @@
+ #include <Rdefines.h>
+ #include <Rinternals.h>
+ #include <Rversion.h>
++
++#if (R_VERSION >= R_Version(2,4,0))
++#include <Rembedded.h>
++#endif
++
++
++
+ #undef _POSIX_C_SOURCE
+ #include <Python.h>
+ #include <R_ext/Rdynload.h>
+@@ -74,7 +81,7 @@
+ # endif
+ #endif /* _WIN32 */
+
+-#include <Rdevices.h> /* must follow Graphics.h */
++#include <Rembedded.h> /* must follow Graphics.h */
+
+
+ /* Missing definitions from Rinterface.h or RStartup.h */
+diff --git src/io.c src/io.c
+index 6c7c31d..cb10259 100644