| Index: src/ports/SkOSLibrary_posix.cpp
|
| diff --git a/src/ports/SkOSLibrary_posix.cpp b/src/ports/SkOSLibrary_posix.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cca55f16a1c9787a13a4c10c453b470bc82107e0
|
| --- /dev/null
|
| +++ b/src/ports/SkOSLibrary_posix.cpp
|
| @@ -0,0 +1,18 @@
|
| +
|
| +/*
|
| + * Copyright 2015 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +#include "SkOSLibrary.h"
|
| +
|
| +#include <dlfcn.h>
|
| +
|
| +void* DynamicLoadLibrary(const char* libraryName) {
|
| + return dlopen(libraryName, RTLD_LAZY);
|
| +}
|
| +
|
| +void* GetProcedureAddress(void* library, const char* functionName) {
|
| + return dlsym(library, functionName);
|
| +}
|
|
|