From 752ac8f49d87374362fc2cb93ccab9c337914778 Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 15 Apr 2026 22:09:43 +0100 Subject: [PATCH] use c_ushort instead of u16 for sa_family_t --- src/header/bits_safamily-t/cbindgen.toml | 4 +--- src/header/bits_safamily-t/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/header/bits_safamily-t/cbindgen.toml b/src/header/bits_safamily-t/cbindgen.toml index e57059c23d..9b70509927 100644 --- a/src/header/bits_safamily-t/cbindgen.toml +++ b/src/header/bits_safamily-t/cbindgen.toml @@ -7,9 +7,7 @@ # - netinet/in.h # - sys/socket.h # - sys/un.h -# -# stdint.h included for uint16_t -sys_includes = ["stdint.h"] +sys_includes = [] include_guard = "_RELIBC_BITS_SA_FAMILY_T_H" language = "C" style = "type" diff --git a/src/header/bits_safamily-t/mod.rs b/src/header/bits_safamily-t/mod.rs index dc5099887f..706ee0a78e 100644 --- a/src/header/bits_safamily-t/mod.rs +++ b/src/header/bits_safamily-t/mod.rs @@ -1 +1,3 @@ -pub type sa_family_t = u16; +use crate::platform::types::c_ushort; + +pub type sa_family_t = c_ushort;