OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_SIGNAL_HANDLER_H_ | 5 #ifndef RUNTIME_VM_SIGNAL_HANDLER_H_ |
6 #define VM_SIGNAL_HANDLER_H_ | 6 #define RUNTIME_VM_SIGNAL_HANDLER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 | 10 |
11 #if defined(TARGET_OS_LINUX) | 11 #if defined(TARGET_OS_LINUX) |
12 #include <signal.h> // NOLINT | 12 #include <signal.h> // NOLINT |
13 #include <ucontext.h> // NOLINT | 13 #include <ucontext.h> // NOLINT |
14 #elif defined(TARGET_OS_ANDROID) | 14 #elif defined(TARGET_OS_ANDROID) |
15 #include <signal.h> // NOLINT | 15 #include <signal.h> // NOLINT |
16 #if !defined(__BIONIC_HAVE_UCONTEXT_T) | 16 #if !defined(__BIONIC_HAVE_UCONTEXT_T) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 #endif // defined(USE_SIGNAL_HANDLER_TRAMPOLINE) | 116 #endif // defined(USE_SIGNAL_HANDLER_TRAMPOLINE) |
117 }; | 117 }; |
118 | 118 |
119 | 119 |
120 #undef USE_SIGNAL_HANDLER_TRAMPOLINE | 120 #undef USE_SIGNAL_HANDLER_TRAMPOLINE |
121 | 121 |
122 | 122 |
123 } // namespace dart | 123 } // namespace dart |
124 | 124 |
125 #endif // VM_SIGNAL_HANDLER_H_ | 125 #endif // RUNTIME_VM_SIGNAL_HANDLER_H_ |
OLD | NEW |