#1154027 android-platform-tools: FTBFS on 64-bit architectures due to __le64 typedef conflict in squashfs_fs.h

#1154027#5
Date:
2026-11-15 10:14:27 UTC
From:
To:
Dear Maintainer,

With glibc 2.44 and newer system headers, `<linux/types.h>` is included transitively when compiling `system/extras/squashfs_utils/squashfs_utils.c`. Because `HAVE_LINUX_TYPES_LE16` is not defined in `debian/system/extras/libext4_utils.mk`, `/usr/include/squashfuse/squashfs_fs.h` defines `typedef uint64_t __le64;`, which conflicts with `typedef __u64 __bitwise __le64;` from `<linux/types.h>` on 64-bit architectures (`unsigned long` vs `unsigned long long`).

The attached patch adds `-DHAVE_LINUX_TYPES_LE16` to `CPPFLAGS` in `debian/system/extras/libext4_utils.mk` so `squashfs_fs.h` uses `<linux/types.h>`.