diff --git a/src/header/bits_timeval/cbindgen.toml b/src/header/bits_timeval/cbindgen.toml index 1dcb1b8aad..d33a3d8659 100644 --- a/src/header/bits_timeval/cbindgen.toml +++ b/src/header/bits_timeval/cbindgen.toml @@ -5,7 +5,8 @@ # POSIX headers that require timeval: # - sys/resource.h # - sys/select.h (where it should be defined) -# - sys/time.h +# - sys/time.h (previous POSIX versions defined it here) +# - utmpx.h (TODO: not currently present in relibc) after_includes = """ #include #include @@ -18,3 +19,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export] +include = ["timeval"] diff --git a/src/header/bits_timeval/mod.rs b/src/header/bits_timeval/mod.rs index 6aeed7b984..81cd4419a9 100644 --- a/src/header/bits_timeval/mod.rs +++ b/src/header/bits_timeval/mod.rs @@ -13,6 +13,3 @@ 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) {}