• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_UCONTEXT_H_
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_UCONTEXT_H_
7 
8 #if defined(__ANDROID__) || defined(__native_client_nonsfi__)
9 
10 #if defined(__arm__)
11 #include "sandbox/linux/system_headers/arm_linux_ucontext.h"
12 #elif defined(__i386__)
13 #include "sandbox/linux/system_headers/i386_linux_ucontext.h"
14 #elif defined(__x86_64__)
15 #include "sandbox/linux/system_headers/x86_64_linux_ucontext.h"
16 #elif defined(__mips__)
17 #include "sandbox/linux/system_headers/mips_linux_ucontext.h"
18 #elif defined(__aarch64__)
19 #include "sandbox/linux/system_headers/arm64_linux_ucontext.h"
20 #else
21 #error "No support for your architecture in Android or PNaCl header"
22 #endif
23 
24 #else  // defined(__ANDROID__) || defined(__native_client_nonsfi__)
25 #error "The header file included on non Android and non PNaCl."
26 #endif  // defined(__ANDROID__) || defined(__native_client_nonsfi__)
27 
28 #endif  // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_UCONTEXT_H_
29