From 26536e69151d5f8e083d8165421039b409c93ee3 Mon Sep 17 00:00:00 2001 From: Haitao Li Date: Mon, 9 Jan 2012 15:28:18 +0800 Subject: [PATCH] rt: Fix build with clang on non-Mac --- src/rt/rust_unwind.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_unwind.h b/src/rt/rust_unwind.h index ddc44b59627..2a7e559d189 100644 --- a/src/rt/rust_unwind.h +++ b/src/rt/rust_unwind.h @@ -6,9 +6,7 @@ #ifdef __APPLE__ #include -typedef int _Unwind_Action; typedef void _Unwind_Context; -typedef void _Unwind_Exception; typedef int _Unwind_Reason_Code; #else @@ -17,5 +15,12 @@ typedef int _Unwind_Reason_Code; #endif +#if (defined __APPLE__) || (defined __clang__) + +typedef int _Unwind_Action; +typedef void _Unwind_Exception; + +#endif + #endif -- 2.44.0