From 98cd19316c5ac5f138f0de6a88d33483d6dd2857 Mon Sep 17 00:00:00 2001 From: "mostynb@opera.com" Date: Mon, 7 Jul 2014 08:20:20 +0000 Subject: 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 --- sandbox/linux/seccomp-bpf/linux_seccomp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sandbox') 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 // Fix for gcc 4.7, make sure __uint16_t is defined. #include #endif -- cgit v1.1