Fix compilation on OpenBSD.

Thanks to Laurence Tratt.
This commit is contained in:
Mike Pall
2012-03-15 12:01:13 +01:00
parent 6670a13bbf
commit 5dbb6671a3
2 changed files with 3 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, _Unwind_Action actions,
}
#if LJ_UNWIND_EXT
#if LJ_TARGET_OSX
#if LJ_TARGET_OSX || defined(__OpenBSD__)
/* Sorry, no thread safety for OSX. Complain to Apple, not me. */
static struct _Unwind_Exception static_uex;
#else