| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_MIPS_UCONTEXT_H_ |
| #define SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_MIPS_UCONTEXT_H_ |
| // This is mostly copied from breakpad (common/android/include/sys/ucontext.h), |
| // except we do use sigset_t for uc_sigmask instead of a custom type. |
| #if !defined(__BIONIC_HAVE_UCONTEXT_T) |
| // Ensure that 'stack_t' is defined. |
| // We also need greg_t for the sandbox, include it in this header as well. |
| typedef unsigned long greg_t; |
| typedef struct ucontext { |
| struct ucontext* uc_link; |
| // Other fields are not used by Google Breakpad. Don't define them. |
| #include <sys/ucontext.h> |
| #endif // __BIONIC_HAVE_UCONTEXT_T |
| #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_MIPS_UCONTEXT_H_ |