Pull in stddef.h in seccomp.h.

offsetof() on Linux is defined in it.
This commit is contained in:
Joris Vink 2022-03-21 12:51:22 +01:00
parent f072e4d5e4
commit 48ae94eb47
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@
#include <linux/filter.h>
#include <linux/seccomp.h>
#include <stddef.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ARGS_LO_OFFSET 0
#define ARGS_HI_OFFSET sizeof(u_int32_t)