lang/erlang-runtime21: fix build with -fno-common
Add an upstream patch to lang/erlang-runtime21 to fix the build with -fno-common, which is the default with llvm 11. MFH: 2020Q3 (implicit, -fno-common fixes, ok by joenum)
This commit is contained in:
parent
07691a7ce4
commit
0ff2ccd87d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546766
1 changed files with 13 additions and 0 deletions
13
lang/erlang-runtime21/files/patch-de870d7f.c
Normal file
13
lang/erlang-runtime21/files/patch-de870d7f.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/lib/erl_interface/src/misc/ei_portio.h b/lib/erl_interface/src/misc/ei_portio.h
|
||||
index 84ebc5039ab..5172d085b40 100644
|
||||
--- lib/erl_interface/src/misc/ei_portio.h
|
||||
+++ lib/erl_interface/src/misc/ei_portio.h
|
||||
@@ -47,7 +47,7 @@ int ei_writev_fill_ctx_t__(ei_socket_callbacks *cbs, void *ctx, const struct iov
|
||||
int ei_socket_callbacks_have_writev__(ei_socket_callbacks *cbs);
|
||||
#endif
|
||||
|
||||
-ei_socket_callbacks ei_default_socket_callbacks;
|
||||
+extern ei_socket_callbacks ei_default_socket_callbacks;
|
||||
|
||||
#define EI_FD_AS_CTX__(FD) \
|
||||
((void *) (long) (FD))
|
Loading…
Reference in a new issue