| Index: runtime/bin/extensions_linux.cc
|
| diff --git a/runtime/bin/extensions_linux.cc b/runtime/bin/extensions_linux.cc
|
| index 7494b08ee1f63aed433220c62905c9d22611af8c..8e96e329efc88ca7be6a034f494172c315a0dc29 100644
|
| --- a/runtime/bin/extensions_linux.cc
|
| +++ b/runtime/bin/extensions_linux.cc
|
| @@ -26,6 +26,10 @@ Dart_Handle Extensions::LoadExtensionLibrary(const char* library_file,
|
| return Dart_Null();
|
| }
|
|
|
| +void* Extensions::LoadExtensionLibrary(const char* library_file) {
|
| + return dlopen(library_file, RTLD_LAZY);
|
| +}
|
| +
|
| Dart_Handle Extensions::ResolveSymbol(void* lib_handle,
|
| const char* symbol,
|
| void** init_function) {
|
| @@ -39,6 +43,13 @@ Dart_Handle Extensions::ResolveSymbol(void* lib_handle,
|
| return Dart_Null();
|
| }
|
|
|
| +void* Extensions::ResolveSymbol(void* lib_handle, const char* symbol) {
|
| + dlerror();
|
| + void* result = dlsym(lib_handle, symbol);
|
| + if (dlerror() != NULL) return NULL;
|
| + return result;
|
| +}
|
| +
|
| } // namespace bin
|
| } // namespace dart
|
|
|
|
|