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

This commit is contained in:
李通洲
2025-03-04 23:22:11 +08:00
parent c1807a1108
commit be89dff12a
+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[];