]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/PluginRegistry: define PLUGIN_SUFFIX to support osx
authorKefu Chai <kchai@redhat.com>
Sat, 11 Nov 2017 03:06:24 +0000 (11:06 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Nov 2017 03:09:31 +0000 (11:09 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/PluginRegistry.cc

index cee379dbea773f439e907bf45c9ee5cb66d748b3..1c12c2a46d72b2146e8da3f430a3fdd9711a10de 100644 (file)
 #include <dlfcn.h>
 
 #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"