| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_MIPS_UCONTEXT_H_ | 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_MIPS_UCONTEXT_H_ |
| 6 #define SANDBOX_LINUX_SERVICES_ANDROID_MIPS_UCONTEXT_H_ | 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_MIPS_UCONTEXT_H_ |
| 7 | 7 |
| 8 // This is mostly copied from breakpad (common/android/include/sys/ucontext.h), | 8 // This is mostly copied from breakpad (common/android/include/sys/ucontext.h), |
| 9 // except we do use sigset_t for uc_sigmask instead of a custom type. | 9 // except we do use sigset_t for uc_sigmask instead of a custom type. |
| 10 #if !defined(__BIONIC_HAVE_UCONTEXT_T) | 10 #if !defined(__BIONIC_HAVE_UCONTEXT_T) |
| 11 // Ensure that 'stack_t' is defined. | 11 // Ensure that 'stack_t' is defined. |
| 12 #include <asm/signal.h> | 12 #include <asm/signal.h> |
| 13 | 13 |
| 14 // We also need greg_t for the sandbox, include it in this header as well. | 14 // We also need greg_t for the sandbox, include it in this header as well. |
| 15 typedef unsigned long greg_t; | 15 typedef unsigned long greg_t; |
| 16 | 16 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 41 stack_t uc_stack; | 41 stack_t uc_stack; |
| 42 mcontext_t uc_mcontext; | 42 mcontext_t uc_mcontext; |
| 43 sigset_t uc_sigmask; | 43 sigset_t uc_sigmask; |
| 44 // Other fields are not used by Google Breakpad. Don't define them. | 44 // Other fields are not used by Google Breakpad. Don't define them. |
| 45 } ucontext_t; | 45 } ucontext_t; |
| 46 | 46 |
| 47 #else | 47 #else |
| 48 #include <sys/ucontext.h> | 48 #include <sys/ucontext.h> |
| 49 #endif // __BIONIC_HAVE_UCONTEXT_T | 49 #endif // __BIONIC_HAVE_UCONTEXT_T |
| 50 | 50 |
| 51 #endif // SANDBOX_LINUX_SERVICES_ANDROID_MIPS_UCONTEXT_H_ | 51 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_MIPS_UCONTEXT_H_ |
| OLD | NEW |