From f6f4d8f71d066ff9ec34dfd125c85a62188fefec Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 4 May 2026 15:22:19 +0100 Subject: [PATCH] export struct via function --- src/header/bits_timeval/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/header/bits_timeval/mod.rs b/src/header/bits_timeval/mod.rs index 81cd4419a9..6aeed7b984 100644 --- a/src/header/bits_timeval/mod.rs +++ b/src/header/bits_timeval/mod.rs @@ -13,3 +13,6 @@ pub struct timeval { pub tv_sec: time_t, pub tv_usec: suseconds_t, } + +#[unsafe(no_mangle)] +pub unsafe extern "C" fn cbindgen_export_timeval(_: timeval) {}