From: Stefan Jumarea Date: Sat, 29 Oct 2022 09:41:26 +0000 (+0300) Subject: patches: Define strtoll_l and strtoull_l in `locale` X-Git-Tag: RELEASE-0.11.0~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c46291240e9166b6af89d148579738541b9dafdb;p=unikraft%2Flibs%2Flibcxx.git patches: Define strtoll_l and strtoull_l in `locale` The `strtoull_l` and `strtoll_l` functions are needed by `locale` and are defined as inlines in `xlocale.h`. Signed-off-by: Stefan Jumarea Reviewed-by: Maria Sfiraiala Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #14 --- diff --git a/patches/0006-Add-xlocale-header-in-include-locale.patch b/patches/0006-Add-xlocale-header-in-include-locale.patch new file mode 100644 index 0000000..807e8cb --- /dev/null +++ b/patches/0006-Add-xlocale-header-in-include-locale.patch @@ -0,0 +1,30 @@ +From accb12e021cc8f2750c606345dba19f7a66cc5ed Mon Sep 17 00:00:00 2001 +From: Stefan Jumarea +Date: Sat, 29 Oct 2022 12:27:20 +0300 +Subject: [PATCH] Add xlocale header in include/locale + +The `include/locale` file needs `strtoll_l` and +`strtoull_l`. They are defined as inlines in +the `xlocale.h` header. + +Signed-off-by: Stefan Jumarea +--- + include/locale | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/locale b/include/locale +index 3fe443002..550cbfda5 100644 +--- a/include/locale ++++ b/include/locale +@@ -211,6 +211,8 @@ template class messages_byname; + #pragma GCC system_header + #endif + ++#include ++ + _LIBCPP_PUSH_MACROS + #include <__undef_macros> + +-- +2.25.1 +