From be89dff12af5760955b34cedbfb707fcaea0314e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 4 Mar 2025 23:22:11 +0800 Subject: [PATCH] Kmod (NetBSD): add `__attribute__((__packed__))` to ensure memory layout --- src/util/kmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/kmod.c b/src/util/kmod.c index defc0ca29..c558481af 100644 --- a/src/util/kmod.c +++ b/src/util/kmod.c @@ -37,7 +37,7 @@ bool ffKmodLoaded(const char* modName) #include #include -typedef struct FFNbsdModList +typedef struct __attribute__((__packed__)) FFNbsdModList { int len; modstat_t mods[];