From 93e0a36bf433442ec77e9d7d18e097db1447e93c Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 22 Mar 2018 10:02:16 -0400 Subject: fix seccomp compile problem on Debian wheezy 32bit --- src/include/seccomp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/seccomp.h b/src/include/seccomp.h index 8f0686a94..4f84e3c45 100644 --- a/src/include/seccomp.h +++ b/src/include/seccomp.h @@ -230,9 +230,12 @@ struct seccomp_data { BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_32, 1, 0), \ BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW) +#ifndef X32_SYSCALL_BIT +#define X32_SYSCALL_BIT 0x40000000 +#endif + #if defined(__x86_64__) // handle X32 ABI -#define X32_SYSCALL_BIT 0x40000000 #define HANDLE_X32 \ BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, X32_SYSCALL_BIT, 1, 0), \ BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 0, 1, 0), \ -- cgit v1.2.3-54-g00ecf