remove duplicate socklen_t definition

This commit is contained in:
auronandace
2026-03-11 12:42:53 +00:00
parent 1bed273ad0
commit ae91f48fae
8 changed files with 29 additions and 11 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
sys_includes = ["stddef.h", "stdint.h", "sys/types.h", "sys/uio.h"]
include_guard = "_SYS_SOCKET_H"
trailer = "#include <bits/sys/socket.h>"
after_includes = """
#include <bits/sys/socket.h>
#include <bits/socklen-t.h> // for socklen_t
"""
language = "C"
style = "Tag"
no_includes = true
+1 -2
View File
@@ -6,7 +6,7 @@ use core::{mem, ptr};
use crate::{
error::ResultExt,
header::sys_uio::iovec,
header::{bits_socklen_t::socklen_t, sys_uio::iovec},
platform::{
PalSocket, Sys,
types::{
@@ -18,7 +18,6 @@ use crate::{
pub mod constants;
pub type sa_family_t = u16;
pub type socklen_t = u32;
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html>.
#[repr(C)]