]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/mach/exc_catcher.c
xnu-6153.81.5.tar.gz
[apple/xnu.git] / libsyscall / mach / exc_catcher.c
index a0d9f716531cd44e377d33a3e8bdc280c94d2e22..d24b486b6e2266b5c10b8340f67d68d3ce05461e 100644 (file)
@@ -51,7 +51,7 @@ internal_catch_exception_raise(
 #if defined(__DYNAMIC__)
        static _libkernel_exc_raise_func_t exc_raise_func = (void*)-1;
 
 #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) {
                exc_raise_func = _dlsym(RTLD_DEFAULT, "catch_exception_raise");
        }
        if (exc_raise_func == 0) {