mirror of
https://github.com/openharmony/ace_napi.git
synced 2026-07-22 01:05:24 -04:00
add mac dlopen so
Signed-off-by: huzeqi <huzeqi@huawei.com> Change-Id: Iac884621da7107319803e529e80043bc9d0d5c31
This commit is contained in:
@@ -256,12 +256,12 @@ LIBHANDLE NativeModuleManager::LoadModuleLibrary(const char* path, const bool is
|
||||
if (lib == nullptr) {
|
||||
HILOG_ERROR("LoadLibrary failed, error: %{public}d", GetLastError());
|
||||
}
|
||||
#elif __BIONIC__
|
||||
#elif defined(MAC_PLATFORM) || defined(__BIONIC__)
|
||||
lib = dlopen(path, RTLD_LAZY);
|
||||
if (lib == nullptr) {
|
||||
HILOG_ERROR("dlopen failed: %{public}s", dlerror());
|
||||
}
|
||||
#elif !defined(MAC_PLATFORM)
|
||||
#else
|
||||
if (isAppModule) {
|
||||
lib = dlopen_ns(&ns_, path, RTLD_LAZY);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user