diff --git a/apple/iOS/bluetooth/btdynamic.c b/apple/iOS/bluetooth/btdynamic.c index e5d13aba8f..a6ba1434e9 100644 --- a/apple/iOS/bluetooth/btdynamic.c +++ b/apple/iOS/bluetooth/btdynamic.c @@ -15,7 +15,7 @@ */ #include #include -#include +#include "../../../dynamic.h" #include #include @@ -81,7 +81,7 @@ bool btstack_try_load(void) btstack_tested = true; btstack_loaded = false; - handle = dlopen("/usr/lib/libBTstack.dylib", RTLD_LAZY); + handle = dylib_load("/usr/lib/libBTstack.dylib"); if (!handle) { @@ -91,13 +91,13 @@ bool btstack_try_load(void) for (i = 0; grabbers[i].name; i ++) { - *grabbers[i].target = dlsym(handle, grabbers[i].name); + *grabbers[i].target = dylib_proc(handle, grabbers[i].name); if (!*grabbers[i].target) { RARCH_ERR("[BTstack]: Symbol %s not found, not loaded.\n", grabbers[i].name); - dlclose(handle); + dylib_close(handle); return false; } }