From e105dbabea12a60b48845e014c18f890d2e5bf0c Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 2 Nov 2024 09:08:17 +0100 Subject: [PATCH] analysis: Support more target dependant types Fixes https://github.com/gtk-rs/gir/issues/1605 --- src/analysis/rust_type.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/analysis/rust_type.rs b/src/analysis/rust_type.rs index 142076845..400f9d9ef 100644 --- a/src/analysis/rust_type.rs +++ b/src/analysis/rust_type.rs @@ -275,6 +275,14 @@ impl<'env> RustTypeBuilder<'env> { Long => ok_and_use("libc::c_long"), // depends of target system ULong => ok_and_use("libc::c_ulong"), // depends of target system + TimeT => ok_and_use("libc::time_t"), // depends of target system + OffT => ok_and_use("libc::off_t"), // depends of target system + DevT => ok_and_use("libc::dev_t"), // depends of target system + GidT => ok_and_use("libc::gid_t"), // depends of target system + PidT => ok_and_use("libc::pid_t"), // depends of target system + SockLenT => ok_and_use("libc::socklen_t"), // depends of target system + UidT => ok_and_use("libc::uid_t"), // depends of target system + Size => ok("usize"), // depends of target system SSize => ok("isize"), // depends of target system