diff options
author | Lucian Petrut <lpetrut@cloudbasesolutions.com> | 2019-10-04 16:56:43 +0200 |
---|---|---|
committer | Lucian Petrut <lpetrut@cloudbasesolutions.com> | 2020-04-14 13:11:32 +0200 |
commit | 6bf7a3eb40f012146e8b4d67585791aca519bd2c (patch) | |
tree | 6c1d2ee964d6c964e10d695b49cd31cbdfc9f41c /src/erasure-code/ErasureCodePlugin.cc | |
parent | Merge pull request #34314 from ishanrai05/html-cleanup (diff) | |
download | ceph-6bf7a3eb40f012146e8b4d67585791aca519bd2c.tar.xz ceph-6bf7a3eb40f012146e8b4d67585791aca519bd2c.zip |
common: Add dlfcn_compat.h for win32
We'll emulate the dlfcn.h interface using Windows functions, which
will allow loading Windows DLLs.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Diffstat (limited to 'src/erasure-code/ErasureCodePlugin.cc')
-rw-r--r-- | src/erasure-code/ErasureCodePlugin.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/erasure-code/ErasureCodePlugin.cc b/src/erasure-code/ErasureCodePlugin.cc index a42bd957a11..f189b91fdfe 100644 --- a/src/erasure-code/ErasureCodePlugin.cc +++ b/src/erasure-code/ErasureCodePlugin.cc @@ -16,22 +16,18 @@ */ #include <errno.h> -#include <dlfcn.h> #include "ceph_ver.h" #include "ErasureCodePlugin.h" #include "common/errno.h" +#include "include/dlfcn_compat.h" #include "include/str_list.h" #include "include/ceph_assert.h" using namespace std; #define PLUGIN_PREFIX "libec_" -#if defined(__APPLE__) -#define PLUGIN_SUFFIX ".dylib" -#else -#define PLUGIN_SUFFIX ".so" -#endif +#define PLUGIN_SUFFIX SHARED_LIB_SUFFIX #define PLUGIN_INIT_FUNCTION "__erasure_code_init" #define PLUGIN_VERSION_FUNCTION "__erasure_code_version" |