diff options
Diffstat (limited to 'arch/um/sys-x86_64/user-offsets.c')
-rw-r--r-- | arch/um/sys-x86_64/user-offsets.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/um/sys-x86_64/user-offsets.c b/arch/um/sys-x86_64/user-offsets.c index 7bb5325..0d5fd76 100644 --- a/arch/um/sys-x86_64/user-offsets.c +++ b/arch/um/sys-x86_64/user-offsets.c @@ -2,6 +2,7 @@ #include <stddef.h> #include <signal.h> #include <sys/poll.h> +#include <sys/mman.h> #define __FRAME_OFFSETS #include <asm/ptrace.h> #include <asm/types.h> @@ -93,4 +94,8 @@ void foo(void) DEFINE(UM_POLLIN, POLLIN); DEFINE(UM_POLLPRI, POLLPRI); DEFINE(UM_POLLOUT, POLLOUT); + + DEFINE(UM_PROT_READ, PROT_READ); + DEFINE(UM_PROT_WRITE, PROT_WRITE); + DEFINE(UM_PROT_EXEC, PROT_EXEC); } |