From 02b302253b2bff2c501302633b0c85810352a2a9 Mon Sep 17 00:00:00 2001 From: auronandace Date: Tue, 2 Dec 2025 15:41:01 +0000 Subject: [PATCH] only import the needed types in sys_un and sys_uio --- src/header/sys_uio/mod.rs | 5 ++++- src/header/sys_un/mod.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/header/sys_uio/mod.rs b/src/header/sys_uio/mod.rs index 8d48447c7d..8bfb8a289b 100644 --- a/src/header/sys_uio/mod.rs +++ b/src/header/sys_uio/mod.rs @@ -7,7 +7,10 @@ use core::slice; use crate::{ header::{errno, unistd}, - platform::{self, types::*}, + platform::{ + self, + types::{c_int, c_void, off_t, size_t, ssize_t}, + }, }; pub const IOV_MAX: c_int = 1024; diff --git a/src/header/sys_un/mod.rs b/src/header/sys_un/mod.rs index dcd102740b..9d1618c9c5 100644 --- a/src/header/sys_un/mod.rs +++ b/src/header/sys_un/mod.rs @@ -2,7 +2,7 @@ //! //! See . -use crate::{header::sys_socket::sa_family_t, platform::types::*}; +use crate::{header::sys_socket::sa_family_t, platform::types::c_char}; /// See . #[repr(C)]