From: Stefan Jumarea Date: Fri, 8 Sep 2023 12:43:13 +0000 (+0300) Subject: patches: Fix __assert_fail function signature X-Git-Tag: RELEASE-0.15.0~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8453ca840b14d73945a3d7fb22a7822bbb544ab0;p=unikraft%2Flibs%2Fclick.git patches: Fix __assert_fail function signature Change the __assert_fail function signature to match the Musl one. Signed-off-by: Stefan Jumarea Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #7 --- diff --git a/patches/0003-glue.cc-Change-__assert_fail-function-signature.patch b/patches/0003-glue.cc-Change-__assert_fail-function-signature.patch new file mode 100644 index 0000000..3f381a0 --- /dev/null +++ b/patches/0003-glue.cc-Change-__assert_fail-function-signature.patch @@ -0,0 +1,29 @@ +From 33cee463dd74661440551b676104107df07a193b Mon Sep 17 00:00:00 2001 +From: Stefan Jumarea +Date: Fri, 8 Sep 2023 15:01:00 +0300 +Subject: [PATCH] glue.cc: Change __assert_fail function signature + +Musl uses int as the line type, instead of unsigned int, which will lead +to conflicting definitions. + +Signed-off-by: Stefan Jumarea +--- + lib/glue.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/glue.cc b/lib/glue.cc +index e9e14149e..ec37da7d0 100644 +--- a/lib/glue.cc ++++ b/lib/glue.cc +@@ -782,7 +782,7 @@ extern "C" { + void + __assert_fail(const char *__assertion, + const char *__file, +- unsigned int __line, ++ int __line, + const char *__function) + { + click_chatter("assertion failed %s %s %d %s\n", +-- +2.39.2 +