| Index: sandbox/linux/bpf_dsl/seccomp_macros.h
|
| diff --git a/sandbox/linux/bpf_dsl/seccomp_macros.h b/sandbox/linux/bpf_dsl/seccomp_macros.h
|
| index 7f4866d486e63b0935f22e61b562765f219feff8..ca28c1d7cd4ec62441b69e446c86e8bcd7c50dfd 100644
|
| --- a/sandbox/linux/bpf_dsl/seccomp_macros.h
|
| +++ b/sandbox/linux/bpf_dsl/seccomp_macros.h
|
| @@ -11,7 +11,9 @@
|
| // All x86_64 builds use a new enough bionic to have sys/user.h.
|
| #if !defined(__BIONIC__) || defined(__x86_64__)
|
| #include <sys/types.h> // Fix for gcc 4.7, make sure __uint16_t is defined.
|
| +#if !defined(__native_client_nonsfi__)
|
| #include <sys/user.h>
|
| +#endif
|
| #if defined(__mips__)
|
| // sys/user.h in eglibc misses size_t definition
|
| #include <stddef.h>
|
| @@ -50,10 +52,10 @@
|
| 8*(nr) + 0)
|
|
|
|
|
| -#if defined(__BIONIC__)
|
| -// Old Bionic versions don't have sys/user.h, so we just define regs_struct
|
| -// directly. This can be removed once we no longer need to support these old
|
| -// Bionic versions.
|
| +#if defined(__BIONIC__) || defined(__native_client_nonsfi__)
|
| +// Old Bionic versions and PNaCl toolchain don't have sys/user.h, so we just
|
| +// define regs_struct directly. This can be removed once we no longer need to
|
| +// support these old Bionic versions and PNaCl toolchain.
|
| struct regs_struct {
|
| long int ebx;
|
| long int ecx;
|
| @@ -149,10 +151,10 @@ typedef user_regs_struct regs_struct;
|
| #define SECCOMP_ARG_LSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \
|
| 8*(nr) + 0)
|
|
|
| -#if defined(__BIONIC__)
|
| -// Old Bionic versions don't have sys/user.h, so we just define regs_struct
|
| -// directly. This can be removed once we no longer need to support these old
|
| -// Bionic versions.
|
| +#if defined(__BIONIC__) || defined(__native_client_nonsfi__)
|
| +// Old Bionic versions and PNaCl toolchain don't have sys/user.h, so we just
|
| +// define regs_struct directly. This can be removed once we no longer need to
|
| +// support these old Bionic versions and PNaCl toolchain.
|
| struct regs_struct {
|
| unsigned long uregs[18];
|
| };
|
|
|