OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_SERVICES_ANDROID_UCONTEXT_H_ |
| 6 #define SANDBOX_LINUX_SERVICES_ANDROID_UCONTEXT_H_ |
| 7 |
| 8 #if defined(__BIONIC_HAVE_UCONTEXT_T) |
| 9 #include <sys/ucontext.h> |
| 10 #else |
| 11 #if defined(__arm__) |
| 12 #include "sandbox/linux/services/android_arm_ucontext.h" |
| 13 #elif defined(__i386__) |
| 14 #include "sandbox/linux/services/android_x86_ucontext.h" |
| 15 #elif defined(__mips__) |
| 16 #error "Lack ucontext_t definition for mips on Android" |
| 17 #else |
| 18 #error "Unsupported CPU ABI for Android" |
| 19 #endif // __arm__ |
| 20 #endif // __BIONIC_HAVE_UCONTEXT_T |
| 21 #endif // SANDBOX_LINUX_SERVICES_ANDROID_UCONTEXT_H_ |
OLD | NEW |