summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2020-05-12 23:48:56 +0900
committerAkinori Hattori <hattya@gentoo.org>2020-05-12 23:59:23 +0900
commit0ba5ef83c4faef54a1bff90bab73c9787756745e (patch)
tree668d9f0a2e09f3aa812855a367ca0bbb2a0d9c4e /dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch
parentsci-libs/scipy: amd64 stable wrt bug #722660 (diff)
downloadgentoo-0ba5ef83c4faef54a1bff90bab73c9787756745e.tar.gz
gentoo-0ba5ef83c4faef54a1bff90bab73c9787756745e.tar.bz2
gentoo-0ba5ef83c4faef54a1bff90bab73c9787756745e.zip
dev-scheme/c-wrapper: fix build with >=dev-scheme/gauche-0.9.9
Closes: https://bugs.gentoo.org/721390 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch')
-rw-r--r--dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch b/dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch
index 091b1e2da105..98dfaa2f945c 100644
--- a/dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch
+++ b/dev-scheme/c-wrapper/files/c-wrapper-gcc-5.patch
@@ -8,7 +8,7 @@
/* skip the first line '# 1 "<stdin>"' */
Scm_ReadLineUnsafe(SCM_PORT(in));
-@@ -1682,16 +1683,26 @@
+@@ -1682,16 +1683,30 @@
}
}
@@ -28,7 +28,11 @@
- parse_macro_body(SCM_CADR(pos_name_args), SCM_CDDR(pos_name_args), line_str);
}
+ while (!SCM_EOFP(line_str = Scm_ReadLineUnsafe(SCM_PORT(in)))
++#ifdef SCM_REGEXP_MULTI_LINE
++ && SCM_REGMATCHP(Scm_RegExec(SCM_REGEXP(regexp), SCM_STRING(line_str), SCM_UNDEFINED, SCM_UNDEFINED))) {
++#else
+ && SCM_REGMATCHP(Scm_RegExec(SCM_REGEXP(regexp), SCM_STRING(line_str)))) {
++#endif
+ if (SCM_EOFP(line_str = Scm_ReadLineUnsafe(SCM_PORT(in)))) {
+ Scm_Error("[bug] unexpected EOF while parsing macro body");
+ }