X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..c6bf4f310a33a9262d455ea4d3f0630b1255e3fe:/libsyscall/mach/exc_catcher_state.c?ds=sidebyside diff --git a/libsyscall/mach/exc_catcher_state.c b/libsyscall/mach/exc_catcher_state.c index deedf57d1..47ac3d7fb 100644 --- a/libsyscall/mach/exc_catcher_state.c +++ b/libsyscall/mach/exc_catcher_state.c @@ -35,7 +35,6 @@ #include #include #include -#include #include "abort.h" #include "exc_catcher.h" @@ -55,7 +54,7 @@ internal_catch_exception_raise_state( #if defined(__DYNAMIC__) static _libkernel_exc_raise_state_func_t exc_raise_state_func = (void*)-1; - if (exc_raise_state_func == ((void*)-1)) { + if (exc_raise_state_func == ((void*)-1) && _dlsym) { exc_raise_state_func = _dlsym(RTLD_DEFAULT, "catch_exception_raise_state"); } if (exc_raise_state_func == 0) {