From c4f77d76d70ead20049fd18593ef8e94fce05365 Mon Sep 17 00:00:00 2001 From: AdamMagued Date: Fri, 2 Oct 2026 13:24:38 +0000 Subject: [PATCH] fix: correct struct padding for freebsd amd64 termios Remove obsolete Pad_cgo_0 padding field from fiodgnameArg in ztypes_freebsd_amd64.go. Go automatically aligns 64-bit pointers to 8 bytes, matching FreeBSD sys/filio.h struct fiodgname_arg layout without explicit padding fields. Fixes #90 --- ztypes_freebsd_amd64.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ztypes_freebsd_amd64.go b/ztypes_freebsd_amd64.go index bfab4e4..cd98e31 100644 --- a/ztypes_freebsd_amd64.go +++ b/ztypes_freebsd_amd64.go @@ -11,7 +11,6 @@ const ( ) type fiodgnameArg struct { - Len int32 - Pad_cgo_0 [4]byte - Buf *byte + Len int32 + Buf *byte }