aboutsummaryrefslogtreecommitdiff
path: root/lang/erlang-runtime20
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2020-08-28 21:56:10 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2020-08-28 21:56:10 +0000
commite5fbb9f4320e60e1203dc781f85fdf5585c8dc53 (patch)
tree7e1d4ba33b92089198e697a31f017d3a5310b7dd /lang/erlang-runtime20
parentc45fb95a69d28d06effe6e2493dcdbcd98d17dff (diff)
downloadports-e5fbb9f4320e60e1203dc781f85fdf5585c8dc53.tar.gz
ports-e5fbb9f4320e60e1203dc781f85fdf5585c8dc53.zip
lang/erlang-runtime20: fix build on recent current
Notes
Notes: svn path=/head/; revision=546835
Diffstat (limited to 'lang/erlang-runtime20')
-rw-r--r--lang/erlang-runtime20/files/patch-erts_emulator_beam_erl__alloc.h11
-rw-r--r--lang/erlang-runtime20/files/patch-erts_emulator_beam_global.h13
2 files changed, 24 insertions, 0 deletions
diff --git a/lang/erlang-runtime20/files/patch-erts_emulator_beam_erl__alloc.h b/lang/erlang-runtime20/files/patch-erts_emulator_beam_erl__alloc.h
new file mode 100644
index 000000000000..23a6b86b9ef7
--- /dev/null
+++ b/lang/erlang-runtime20/files/patch-erts_emulator_beam_erl__alloc.h
@@ -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);
diff --git a/lang/erlang-runtime20/files/patch-erts_emulator_beam_global.h b/lang/erlang-runtime20/files/patch-erts_emulator_beam_global.h
new file mode 100644
index 000000000000..1f7dbc8f1806
--- /dev/null
+++ b/lang/erlang-runtime20/files/patch-erts_emulator_beam_global.h
@@ -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);