From 0af502f43877cddbb60aca4d1446a3634607143d Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 29 Jun 2011 11:25:29 +0200 Subject: [PATCH] Don't use thread-safe exceptions on OSX. Complain to Apple, not me. --- src/lj_err.c | 5 +++++ 1 file changed, 5 insertions(+) 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, } #if LJ_UNWIND_EXT +#if LJ_TARGET_OSX +/* Sorry, no thread safety for OSX. Complain to Apple, not me. */ +static struct _Unwind_Exception static_uex; +#else static __thread struct _Unwind_Exception static_uex; +#endif /* Raise DWARF2 exception. */ static void err_raise_ext(int errcode)