summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/ErasureCodePlugin.cc
diff options
context:
space:
mode:
authorLucian Petrut <lpetrut@cloudbasesolutions.com>2019-10-04 16:56:43 +0200
committerLucian Petrut <lpetrut@cloudbasesolutions.com>2020-04-14 13:11:32 +0200
commit6bf7a3eb40f012146e8b4d67585791aca519bd2c (patch)
tree6c1d2ee964d6c964e10d695b49cd31cbdfc9f41c /src/erasure-code/ErasureCodePlugin.cc
parentMerge pull request #34314 from ishanrai05/html-cleanup (diff)
downloadceph-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.cc8
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"