diff options
| author | Mike Pall <mike> | 2011-06-29 11:25:29 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2011-06-29 11:27:09 +0200 |
| commit | 0af502f43877cddbb60aca4d1446a3634607143d (patch) | |
| tree | 8d380cb6000f36fec46b4bbabe25c2cf9e9e5714 | |
| parent | 64dbe7d929cb5c368176ccb967b8909a4af8ede3 (diff) | |
| download | luajit-0af502f43877cddbb60aca4d1446a3634607143d.tar.gz luajit-0af502f43877cddbb60aca4d1446a3634607143d.tar.bz2 luajit-0af502f43877cddbb60aca4d1446a3634607143d.zip | |
Don't use thread-safe exceptions on OSX. Complain to Apple, not me.
| -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) |
