!11 fix build error caused by GCC upgrade to 10

From: @lipingEmmaSiguyi
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-08-03 11:21:20 +00:00 committed by Gitee
commit e3f376fd1d
2 changed files with 16 additions and 1 deletions

View File

@ -11,7 +11,7 @@
%global __with_wxwidgets 1
Name: erlang
Version: 21.3.3
Release: 2
Release: 3
Summary: General-purpose programming language and runtime environment
License: ASL 2.0
URL: https://www.erlang.org
@ -31,6 +31,7 @@ Patch7: otp-0007-Add-extra-search-directory.patch
Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch
Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch
Patch10: otp-0010-Improve-nodes-querying.patch
Patch11: extern-ei-default-socket-callbacks.patch
BuildRequires: gcc gcc-c++ flex
%if %{with doc}
%if 0%{?need_bootstrap} < 1
@ -1723,6 +1724,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \
%endif
%changelog
* Fri Jul 30 2021 liping <liping136@huawei.com> - 21.3.3-3
- Support parallel compilation
* Sat Mar 27 2021 weishengjing <weishengjing1@huawei.com> - 21.3.3-2
- Support parallel compilation

View File

@ -0,0 +1,11 @@
--- a/lib/erl_interface/src/misc/ei_portio.h 2021-08-03 11:40:41.087250211 +0800
+++ b/lib/erl_interface/src/misc/ei_portio.h 2021-08-03 11:40:19.690906742 +0800
@@ -47,7 +47,7 @@
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))