diff --git a/src/tools/ceph-dencoder/ceph_dencoder.cc b/src/tools/ceph-dencoder/ceph_dencoder.cc index ccf51575c738c..effcfa41ee95e 100644 --- a/src/tools/ceph-dencoder/ceph_dencoder.cc +++ b/src/tools/ceph-dencoder/ceph_dencoder.cc @@ -75,9 +75,11 @@ class DencoderPlugin { } } ~DencoderPlugin() { +#if !defined(__FreeBSD__) if (mod) { dlclose(mod); } +#endif } int register_dencoders() { assert(mod);