From: Mike Pall Date: Sun, 8 Dec 2019 18:22:37 +0000 (+0100) Subject: OSX: Use __thread attribute. X-Git-Tag: v2.1.ROLLING~292^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44382e833a9334c19e47e64e8078a322026e094d;p=thirdparty%2FLuaJIT.git OSX: Use __thread attribute. --- diff --git a/src/lj_err.c b/src/lj_err.c index 13a1ded7..6619ad79 100644 --- a/src/lj_err.c +++ b/src/lj_err.c @@ -290,12 +290,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, int actions, } #if LJ_UNWIND_EXT -#if LJ_TARGET_OSX || defined(__OpenBSD__) -/* Sorry, no thread safety for OSX. Complain to Apple, not me. */ -static _Unwind_Exception static_uex; -#else static __thread _Unwind_Exception static_uex; -#endif /* Raise DWARF2 exception. */ static void err_raise_ext(int errcode)