diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch new file mode 100644 index 0000000000..0b5087f283 --- /dev/null +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch @@ -0,0 +1,38 @@ +From f6874a2f7de30b6eeefb2d509b895c58b93da8f7 Mon Sep 17 00:00:00 2001 +From: Sasi Kumar Maddineni +Date: Wed, 29 Oct 2025 09:38:17 +0530 +Subject: [PATCH] libziparchive: fix missing fixed-width integer types in + zip_writer.h + +Compilation fails due to undefined types 'uint16_t' and 'uint32_t' in +zip_writer.h. These types are used in struct members but are not recognized +because the required header is not included. This results in +errors such as: + error: 'uint16_t' does not name a type + error: 'uint32_t' does not name a type + +Added '#include ' to zip_writer.h to ensure fixed-width integer +types are properly defined. + +Upstream-Status: Pending + +Signed-off-by: Sasi Kumar Maddineni +--- + system/core/libziparchive/include/ziparchive/zip_writer.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/system/core/libziparchive/include/ziparchive/zip_writer.h b/system/core/libziparchive/include/ziparchive/zip_writer.h +index d68683df..7a05e349 100644 +--- a/system/core/libziparchive/include/ziparchive/zip_writer.h ++++ b/system/core/libziparchive/include/ziparchive/zip_writer.h +@@ -18,6 +18,7 @@ + + #include + #include ++#include + + #include + #include +-- +2.34.1 + diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb index 47c8e08b62..74928ed171 100644 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb @@ -40,6 +40,7 @@ SRC_URI += " \ file://debian/system/core/fix-standard-namespace-errors.patch \ file://debian/system/core/Add-riscv64-support.patch \ file://debian/system/core/android-tools-scope-write-macro-to-prevent-conflict-.patch \ + file://debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch \ \ "