Kmod (NetBSD): add __attribute__((__packed__)) to ensure memory layout

This commit is contained in:
李通洲 committed 2025-03-04 23:23:46 +08:00
1 parent c1807a1108
commit be89dff12a
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@ bool ffKmodLoaded(const char* modName)
#include <sys/module.h>
#include <sys/param.h>
typedef struct FFNbsdModList
typedef struct __attribute__((__packed__)) FFNbsdModList
{
int len;
modstat_t mods[];