From c46291240e9166b6af89d148579738541b9dafdb Mon Sep 17 00:00:00 2001 From: Stefan Jumarea Date: Sat, 29 Oct 2022 12:41:26 +0300 Subject: [PATCH] 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 --- ...Add-xlocale-header-in-include-locale.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 patches/0006-Add-xlocale-header-in-include-locale.patch 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 + -- 2.39.5