Skip to content

Commit be89dff

Browse files
committed
Kmod (NetBSD): add __attribute__((__packed__)) to ensure memory layout
1 parent c1807a1 commit be89dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/kmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bool ffKmodLoaded(const char* modName)
3737
#include <sys/module.h>
3838
#include <sys/param.h>
3939

40-
typedef struct FFNbsdModList
40+
typedef struct __attribute__((__packed__)) FFNbsdModList
4141
{
4242
int len;
4343
modstat_t mods[];

0 commit comments

Comments
 (0)