diff --git a/src/header/termios/cbindgen.toml b/src/header/termios/cbindgen.toml index 88af46072a..85d08f0d90 100644 --- a/src/header/termios/cbindgen.toml +++ b/src/header/termios/cbindgen.toml @@ -1,4 +1,8 @@ -sys_includes = ["sys/types.h", "stdint.h", "features.h"] +# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/termios.h.html +# +# Spec quotations relating to includes: +# - "The header shall define the pid_t type as described in ." +sys_includes = ["sys/types.h"] include_guard = "_RELIBC_TERMIOS_H" language = "C" style = "Tag" diff --git a/src/header/termios/mod.rs b/src/header/termios/mod.rs index 9309f7a3e0..a6ce8be41e 100644 --- a/src/header/termios/mod.rs +++ b/src/header/termios/mod.rs @@ -40,6 +40,9 @@ pub const TCSANOW: c_int = 0; pub const TCSADRAIN: c_int = 1; pub const TCSAFLUSH: c_int = 2; +#[unsafe(no_mangle)] +pub unsafe extern "C" fn cbindgen_export_winsize(winsize: winsize) {} + /// See . #[cfg(target_os = "linux")] #[repr(C)]