Skip to content

Commit 26536e6

Browse files
committed
rt: Fix build with clang on non-Mac
1 parent 972f6c1 commit 26536e6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/rt/rust_unwind.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
#ifdef __APPLE__
77
#include <libunwind.h>
88

9-
typedef int _Unwind_Action;
109
typedef void _Unwind_Context;
11-
typedef void _Unwind_Exception;
1210
typedef int _Unwind_Reason_Code;
1311

1412
#else
@@ -17,5 +15,12 @@ typedef int _Unwind_Reason_Code;
1715

1816
#endif
1917

18+
#if (defined __APPLE__) || (defined __clang__)
19+
20+
typedef int _Unwind_Action;
21+
typedef void _Unwind_Exception;
22+
23+
#endif
24+
2025
#endif
2126

0 commit comments

Comments
 (0)