From 399d5f3f23cc278b787276dc665b57a7e6efb345 Mon Sep 17 00:00:00 2001 From: Christopher Fore Date: Wed, 22 Nov 2023 17:09:23 -0500 Subject: [PATCH] patches/core: Fix compilation on GCC 14 Imports the patch from https://android-review.googlesource.com/c/platform/system/core/+/2839495 --- ...12-Add-explicit-import-for-algorithm.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 patches/core/0012-Add-explicit-import-for-algorithm.patch diff --git a/patches/core/0012-Add-explicit-import-for-algorithm.patch b/patches/core/0012-Add-explicit-import-for-algorithm.patch new file mode 100644 index 0000000..15644e4 --- /dev/null +++ b/patches/core/0012-Add-explicit-import-for-algorithm.patch @@ -0,0 +1,26 @@ +From 1f8bbf8c3dd76401b09de9af7e94d6099589a965 Mon Sep 17 00:00:00 2001 +From: Christopher Fore +Date: Mon, 20 Nov 2023 15:19:12 -0500 +Subject: [PATCH] fs_mgr: IWYU include for std::sort + +GCC 14 starts to no longer include by default, resulting in +it needing to be explicitly declared. + +Test: Recompiled with GCC 14 and succeeded + +Change-Id: Ifc5dd58b7476ba728ae604cd2924cb68fbcab701 +Signed-off-by: Christopher Fore +--- + +diff --git a/fs_mgr/liblp/include/liblp/liblp.h b/fs_mgr/liblp/include/liblp/liblp.h +index 04f8987..c42dcdc 100644 +--- a/fs_mgr/liblp/include/liblp/liblp.h ++++ b/fs_mgr/liblp/include/liblp/liblp.h +@@ -20,6 +20,7 @@ + #include + #include + ++#include + #include + #include + #include