diff options
author | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-07 08:20:20 +0000 |
---|---|---|
committer | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-07 08:20:20 +0000 |
commit | 98cd19316c5ac5f138f0de6a88d33483d6dd2857 (patch) | |
tree | 79e9b7353820a7e8cdf94fdd0a48cbf0bdb3a866 /sandbox/linux/seccomp-bpf | |
parent | f264a35084e177a7d6104d677e06f4d186b894ab (diff) | |
download | chromium_src-98cd19316c5ac5f138f0de6a88d33483d6dd2857.zip chromium_src-98cd19316c5ac5f138f0de6a88d33483d6dd2857.tar.gz chromium_src-98cd19316c5ac5f138f0de6a88d33483d6dd2857.tar.bz2 |
gcc 4.7 workaround for __uint16_t
It seems that with my gcc 4.7 / eglibc 2.11 toolchain, sys/user.h uses
__uint16_t without it necessarily being defined first. This can be
worked around by simply including sys/types.h first.
BUG=231000
Review URL: https://codereview.chromium.org/371573003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/seccomp-bpf')
-rw-r--r-- | sandbox/linux/seccomp-bpf/linux_seccomp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp-bpf/linux_seccomp.h b/sandbox/linux/seccomp-bpf/linux_seccomp.h index 270e11c..b3d7a55 100644 --- a/sandbox/linux/seccomp-bpf/linux_seccomp.h +++ b/sandbox/linux/seccomp-bpf/linux_seccomp.h @@ -21,6 +21,7 @@ // longer need to support these old Bionic versions. // 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. #include <sys/user.h> #endif |