X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..c6bf4f310a33a9262d455ea4d3f0630b1255e3fe:/libsyscall/mach/exc_catcher.c?ds=inline diff --git a/libsyscall/mach/exc_catcher.c b/libsyscall/mach/exc_catcher.c index a0d9f7165..d24b486b6 100644 --- a/libsyscall/mach/exc_catcher.c +++ b/libsyscall/mach/exc_catcher.c @@ -51,7 +51,7 @@ internal_catch_exception_raise( #if defined(__DYNAMIC__) static _libkernel_exc_raise_func_t exc_raise_func = (void*)-1; - if (exc_raise_func == ((void*)-1)) { + if (exc_raise_func == ((void*)-1) && _dlsym) { exc_raise_func = _dlsym(RTLD_DEFAULT, "catch_exception_raise"); } if (exc_raise_func == 0) {