diff options
Diffstat (limited to 'src/lj_err.c')
-rw-r--r-- | src/lj_err.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_err.c b/src/lj_err.c index 0c495d43..35dfeabb 100644 --- a/src/lj_err.c +++ b/src/lj_err.c | |||
@@ -258,7 +258,12 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, _Unwind_Action actions, | |||
258 | } | 258 | } |
259 | 259 | ||
260 | #if LJ_UNWIND_EXT | 260 | #if LJ_UNWIND_EXT |
261 | #if LJ_TARGET_OSX | ||
262 | /* Sorry, no thread safety for OSX. Complain to Apple, not me. */ | ||
263 | static struct _Unwind_Exception static_uex; | ||
264 | #else | ||
261 | static __thread struct _Unwind_Exception static_uex; | 265 | static __thread struct _Unwind_Exception static_uex; |
266 | #endif | ||
262 | 267 | ||
263 | /* Raise DWARF2 exception. */ | 268 | /* Raise DWARF2 exception. */ |
264 | static void err_raise_ext(int errcode) | 269 | static void err_raise_ext(int errcode) |