diff --git a/src/test/openat2.c b/src/test/openat2.c index 562c5f83780..d2a52de8fc1 100644 --- a/src/test/openat2.c +++ b/src/test/openat2.c @@ -3,7 +3,6 @@ #include "util.h" #include /* Definition of O_* and S_* constants */ -#include /* Definition of RESOLVE_* constants */ #include /* Definition of SYS_* constants */ #include #include diff --git a/src/test/util.h b/src/test/util.h index 70c68ffdca0..c4bd8570597 100644 --- a/src/test/util.h +++ b/src/test/util.h @@ -464,6 +464,14 @@ static inline uintptr_t unbufferable_syscall(uintptr_t syscall, uintptr_t arg1, #define RR_KCMP_FILE 0 #define RR_KCMP_FILES 2 +/* Old systems don't have linux/openat2.h */ +struct open_how { + __u64 flags; + __u64 mode; + __u64 resolve; +}; +#define RESOLVE_BENEATH 0x08 + /* Old systems don't have these */ #ifndef TIOCGPKT #define TIOCGPKT _IOR('T', 0x38, int)