From bb7ad197925555f150f92cf24a39d1916816db13 Mon Sep 17 00:00:00 2001 From: auronandace Date: Sun, 7 Dec 2025 17:04:59 +0000 Subject: [PATCH] only import the needed types for sys_utsname and sys_select --- src/header/sys_select/mod.rs | 2 +- src/header/sys_utsname/mod.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/header/sys_select/mod.rs b/src/header/sys_select/mod.rs index 51e8901351..8124f211a9 100644 --- a/src/header/sys_select/mod.rs +++ b/src/header/sys_select/mod.rs @@ -16,7 +16,7 @@ use crate::{ }, sys_time::timeval, }, - platform::{self, types::*}, + platform::{self, types::c_int}, }; // fd_set is also defined in C because cbindgen is incompatible with mem::size_of booo diff --git a/src/header/sys_utsname/mod.rs b/src/header/sys_utsname/mod.rs index da72961bd8..8751727430 100644 --- a/src/header/sys_utsname/mod.rs +++ b/src/header/sys_utsname/mod.rs @@ -5,7 +5,10 @@ use crate::{ error::ResultExt, out::Out, - platform::{Pal, Sys, types::*}, + platform::{ + Pal, Sys, + types::{c_char, c_int}, + }, }; pub const UTSLENGTH: usize = 65;