lang/mosh: Fix build on 13-CURRENT

lang/mosh depended on -fcommon

Cherry-pick upstream fix:
808af929bf

PR:	248874
Submitted by:	mjt@cltn.org (maintainer)
This commit is contained in:
Fernando Apesteguía
2020-08-24 18:02:01 +00:00
parent 0d20d7b685
commit ec1d67e803
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- extlibs/gc-cvs/include/private/gc_priv.h.orig 2020-08-24 13:57:21 UTC
+++ extlibs/gc-cvs/include/private/gc_priv.h
@@ -2169,7 +2169,7 @@ GC_EXTERN signed_word GC_bytes_found;
#if defined(NEED_FIND_LIMIT) \
|| (defined(USE_PROC_FOR_LIBRARIES) && defined(THREADS))
- JMP_BUF GC_jmp_buf;
+ GC_EXTERN JMP_BUF GC_jmp_buf;
/* Set up a handler for address faults which will longjmp to */
/* GC_jmp_buf; */

View File

@@ -0,0 +1,11 @@
--- extlibs/gc-cvs/os_dep.c.orig 2020-08-24 13:59:02 UTC
+++ extlibs/gc-cvs/os_dep.c
@@ -889,6 +889,8 @@ GC_INNER word GC_page_size = 0;
/* Some tools to implement HEURISTIC2 */
# define MIN_PAGE_SIZE 256 /* Smallest conceivable page size, bytes */
+ GC_INNER JMP_BUF GC_jmp_buf;
+
/*ARGSUSED*/
STATIC void GC_fault_handler(int sig)
{