ibf2fs.c 2024-08-29 19:46:57.000000000 +0200 ++++ vendor/f2fs-tools/lib/libf2fs.c 2026-03-21 14:06:22.014748000 +0100 +@@ -43,6 +43,9 @@ + #ifdef HAVE_LINUX_LIMITS_H + #include + #endif ++#ifdef HAVE_LIMITS_H ++#include ++#endif + + /* SCSI command for standard inquiry*/ + #define MODELINQUIRY 0x12,0x00,0x00,0x00,0x4A,0x00 +@@ -945,6 +948,13 @@ + #define BLKGETSIZE DKIOCGETBLOCKCOUNT + #define BLKSSZGET DKIOCGETBLOCKCOUNT + #endif /* APPLE_DARWIN */ ++ ++#if defined(__FreeBSD__) ++#include ++#include ++#define BLKGETSIZE64 DIOCGMEDIASIZE ++#define BLKSSZGET DIOCGSECTORSIZE ++#endif /* __FreeBSD__ */ + + #ifndef _WIN32 + static int open_check_fs(char *path, int flag) diff --git a/devel/android-tools/files/patch-vendor_libbase_file.cpp b/devel/android-tools/files/patch-vendor_libbase_file.cpp new file mode 100644 index 000000000000..8bcc46af49f1 --- /dev/null +++ b/devel/android-tools/files/patch-vendor_libbase_file.cpp @@ -0,0 +1,25 @@ +--- vendor/libbase/file.cpp 2024-08-29 19:46:57.000000000 +0200 ++++ vendor/libbase/file.cpp 2026-03-21 14:02:01.670927000 +0100 +@@ -35,6 +35,9 @@ + + #if defined(__APPLE__) + #include ++#endif ++#if defined(__FreeBSD__) ++#include + #endif + #if defined(_WIN32) + #include *** 200 LINES SKIPPED ***