Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: runtime/vm/signal_handler.h

Issue 254383003: Small fixes for Android. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/signal_handler.h
===================================================================
--- runtime/vm/signal_handler.h (revision 35316)
+++ runtime/vm/signal_handler.h (working copy)
@@ -13,7 +13,16 @@
#include <ucontext.h> // NOLINT
#elif defined(TARGET_OS_ANDROID)
#include <signal.h> // NOLINT
-struct mcontext_t;
+#include <asm/sigcontext.h> // NOLINT
+// These are not defined on Android, so we have to define them here.
+typedef struct sigcontext mcontext_t;
+typedef struct ucontext {
+ uint32_t uc_flags;
+ struct ucontext *uc_link;
+ stack_t uc_stack;
+ struct sigcontext uc_mcontext;
+ uint32_t uc_sigmask;
+} ucontext_t;
#elif defined(TARGET_OS_MACOS)
#include <signal.h> // NOLINT
#include <sys/ucontext.h> // NOLINT

Powered by Google App Engine
This is Rietveld 408576698