remove duplicate socklen_t definition
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user