lang/erlang-runtime20: fix build on recent current

This commit is contained in:
Tobias C. Berner
2020-08-28 21:56:10 +00:00
parent c45fb95a69
commit e5fbb9f432
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- erts/emulator/beam/erl_alloc.h.orig 2020-08-28 21:30:14 UTC
+++ erts/emulator/beam/erl_alloc.h
@@ -146,7 +146,7 @@ typedef struct ErtsAllocatorWrapper_t_ {
void (*unlock)(void);
struct ErtsAllocatorWrapper_t_* next;
}ErtsAllocatorWrapper_t;
-ErtsAllocatorWrapper_t *erts_allctr_wrappers;
+extern ErtsAllocatorWrapper_t *erts_allctr_wrappers;
extern int erts_allctr_wrapper_prelocked;
extern erts_tsd_key_t erts_allctr_prelock_tsd_key;
void erts_allctr_wrapper_prelock_init(ErtsAllocatorWrapper_t* wrapper);

View File

@@ -0,0 +1,13 @@
--- erts/emulator/beam/global.h.orig 2020-08-28 21:32:51 UTC
+++ erts/emulator/beam/global.h
@@ -959,8 +959,8 @@ void erts_update_ranges(BeamInstr* code, Uint size);
void erts_remove_from_ranges(BeamInstr* code);
UWord erts_ranges_sz(void);
void erts_lookup_function_info(FunctionInfo* fi, BeamInstr* pc, int full_info);
-ErtsLiteralArea** erts_dump_lit_areas;
-Uint erts_dump_num_lit_areas;
+extern ErtsLiteralArea** erts_dump_lit_areas;
+extern Uint erts_dump_num_lit_areas;
/* break.c */
void init_break_handler(void);