Kmod (NetBSD): add __attribute__((__packed__)) to ensure memory layout
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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[];
|
||||
|
||||
Reference in new issue
Block a user