// Unwinding stuff missing on some architectures (Mac OS X).

#ifndef RUST_UNWIND_H
#define RUST_UNWIND_H

#ifdef __APPLE__
#include <libunwind.h>

typedef void _Unwind_Context;
typedef int _Unwind_Reason_Code;

#else

#include <unwind.h>

#endif

#if (defined __APPLE__) || (defined __clang__)

typedef int _Unwind_Action;
typedef void _Unwind_Exception;

#endif

#endif


// Unwinding stuff missing on some architectures (Mac OS X).

#ifndef RUST_UNWIND_H
#define RUST_UNWIND_H

#ifdef __APPLE__
#include <libunwind.h>

typedef int _Unwind_Action;
typedef void _Unwind_Context;
typedef void _Unwind_Exception;
typedef int _Unwind_Reason_Code;

#else

#include <unwind.h>

#endif

#endif


--- 
+++ 
@@ -6,9 +6,7 @@
 #ifdef __APPLE__
 #include <libunwind.h>
 
-typedef int _Unwind_Action;
 typedef void _Unwind_Context;
-typedef void _Unwind_Exception;
 typedef int _Unwind_Reason_Code;
 
 #else
@@ -17,5 +15,12 @@
 
 #endif
 
+#if (defined __APPLE__) || (defined __clang__)
+
+typedef int _Unwind_Action;
+typedef void _Unwind_Exception;
+
 #endif
 
+#endif
+
rt: Fix build with clang on non-Mac
