From be411c9af9326e3f4321f32dc06c3dfc766bf313 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 19 Oct 2024 23:00:40 +0200 Subject: [PATCH] hurd: fix definition of utsname struct - drop the "domainname" field, as it is not actually used - bump the length of the other fields to 1024, which is the actual size of the C arrays on Hurd --- src/unix/hurd/mod.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/unix/hurd/mod.rs b/src/unix/hurd/mod.rs index a89da8c5e5b2b..bf6987c39652a 100644 --- a/src/unix/hurd/mod.rs +++ b/src/unix/hurd/mod.rs @@ -872,12 +872,11 @@ s! { } pub struct utsname { - pub sysname: [::c_char; 65], - pub nodename: [::c_char; 65], - pub release: [::c_char; 65], - pub version: [::c_char; 65], - pub machine: [::c_char; 65], - pub domainname: [::c_char; 65] + pub sysname: [::c_char; 1024], + pub nodename: [::c_char; 1024], + pub release: [::c_char; 1024], + pub version: [::c_char; 1024], + pub machine: [::c_char; 1024], } pub struct rlimit64 {