rstudio: fix build
This commit is contained in:
parent
f3c635df04
commit
07a3403cbe
1 changed files with 34 additions and 0 deletions
34
srcpkgs/rstudio/patches/fix-build.patch
Normal file
34
srcpkgs/rstudio/patches/fix-build.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
Ref: https://www.mail-archive.com/commit@lists.opensuse.org/msg43991.html
|
||||||
|
|
||||||
|
From 872e2806f74e922a25e0f9586faa6624883728ca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kevin Ushey <kevinus...@gmail.com>
|
||||||
|
Date: Wed, 21 Jul 2021 19:56:34 -0700
|
||||||
|
Subject: [PATCH] support compilation with r-devel
|
||||||
|
|
||||||
|
---
|
||||||
|
src/cpp/r/session/RSession.cpp | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/cpp/r/session/RSession.cpp b/src/cpp/r/session/RSession.cpp
|
||||||
|
index 0066a61c1b6..6c5f986f6a0 100644
|
||||||
|
--- a/src/cpp/r/session/RSession.cpp
|
||||||
|
+++ b/src/cpp/r/session/RSession.cpp
|
||||||
|
@@ -68,6 +68,9 @@
|
||||||
|
|
||||||
|
#include <gsl/gsl>
|
||||||
|
|
||||||
|
+extern "C" {
|
||||||
|
+int Rf_countContexts(int, int);
|
||||||
|
+}
|
||||||
|
#define CTXT_BROWSER 16
|
||||||
|
|
||||||
|
// get rid of windows TRUE and FALSE definitions
|
||||||
|
@@ -493,7 +496,7 @@ bool isSuspendable(const std::string& currentPrompt)
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+
|
||||||
|
|
||||||
|
bool browserContextActive()
|
||||||
|
{
|
Loading…
Add table
Add a link
Reference in a new issue