math/rstudio: fix build by providing a missing prototype.

backport of upstream commit 872e2806f74e922a25e0f9586faa6624883728ca

breakage reported by aja.
This commit is contained in:
tb 2022-08-05 08:08:35 +00:00
parent adf09d3343
commit bab6f4ab96
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
Backport https://github.com/rstudio/rstudio/commit/872e2806f74e922a25e0f9586faa6624883728ca
to fix build with newer R.
Index: src/cpp/r/session/RSession.cpp
--- src/cpp/r/session/RSession.cpp.orig
+++ src/cpp/r/session/RSession.cpp
@@ -67,6 +67,10 @@
#include <gsl/gsl>
+extern "C" {
+int Rf_countContexts(int, int);
+}
+
#define CTXT_BROWSER 16
// get rid of windows TRUE and FALSE definitions