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:
@@ -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; */
|
||||
11
lang/mosh/files/patch-extlibs_gc-cvs_os__dep.c
Normal file
11
lang/mosh/files/patch-extlibs_gc-cvs_os__dep.c
Normal 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)
|
||||
{
|
||||
Reference in New Issue
Block a user