| Index: runtime/bin/extensions_macos.cc
|
| diff --git a/runtime/bin/extensions_macos.cc b/runtime/bin/extensions_macos.cc
|
| index 3269e4f06fc0e4fb9ce5f7ba51ede72604fd4ee5..7007f4a8f1fd5c0926d066790fa42c4707d3ed9d 100644
|
| --- a/runtime/bin/extensions_macos.cc
|
| +++ b/runtime/bin/extensions_macos.cc
|
| @@ -5,8 +5,8 @@
|
| #include "platform/globals.h"
|
| #if defined(HOST_OS_MACOS)
|
|
|
| -#include "bin/extensions.h"
|
| #include <dlfcn.h> // NOLINT
|
| +#include "bin/extensions.h"
|
|
|
| #include "platform/assert.h"
|
|
|
| @@ -23,20 +23,17 @@ void* Extensions::LoadExtensionLibrary(const char* library_file) {
|
| return dlopen(library_file, RTLD_LAZY);
|
| }
|
|
|
| -
|
| void* Extensions::ResolveSymbol(void* lib_handle, const char* symbol) {
|
| dlerror();
|
| return dlsym(lib_handle, symbol);
|
| }
|
|
|
| -
|
| void Extensions::UnloadLibrary(void* lib_handle) {
|
| dlerror();
|
| int result = dlclose(lib_handle);
|
| ASSERT(result == 0);
|
| }
|
|
|
| -
|
| Dart_Handle Extensions::GetError() {
|
| const char* err_str = dlerror();
|
| if (err_str != NULL) {
|
|
|