Skip to content

Commit 9694318

Browse files
committed
chore: fix musl arm build
1 parent dc0e69a commit 9694318

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

programs/local/LocalServer.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@
7171
# include <azure/storage/common/internal/xml_wrapper.hpp>
7272
#endif
7373

74+
#if defined(USE_MUSL) && defined(__aarch64__)
75+
void local_server_musl_compile_stub(int arg)
76+
{
77+
jmp_buf buf1;
78+
sigjmp_buf buf2;
79+
80+
setjmp(buf1);
81+
sigsetjmp(buf2, arg);
82+
}
83+
#endif
7484

7585
namespace fs = std::filesystem;
7686

src/TableFunctions/ITableFunction.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
#include <TableFunctions/TableFunctionFactory.h>
88
#include <Interpreters/Context.h>
99

10+
#if defined(USE_MUSL) && defined(__aarch64__)
11+
void i_table_function_musl_compile_stub(int arg)
12+
{
13+
jmp_buf buf1;
14+
sigjmp_buf buf2;
15+
16+
setjmp(buf1);
17+
sigsetjmp(buf2, arg);
18+
}
19+
#endif
1020

1121
namespace ProfileEvents
1222
{

0 commit comments

Comments
 (0)