From 23082fb33e120c2659e349d9020a3b37af6f4b53 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 11 Nov 2017 11:06:24 +0800 Subject: [PATCH] common/PluginRegistry: define PLUGIN_SUFFIX to support osx Signed-off-by: Kefu Chai --- src/common/PluginRegistry.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/PluginRegistry.cc b/src/common/PluginRegistry.cc index cee379dbea773..1c12c2a46d72b 100644 --- a/src/common/PluginRegistry.cc +++ b/src/common/PluginRegistry.cc @@ -23,7 +23,11 @@ #include #define PLUGIN_PREFIX "libceph_" +#ifdef __APPLE__ +#define PLUGIN_SUFFIX ".dylib" +#else #define PLUGIN_SUFFIX ".so" +#endif #define PLUGIN_INIT_FUNCTION "__ceph_plugin_init" #define PLUGIN_VERSION_FUNCTION "__ceph_plugin_version" -- 2.39.5