MDEV-35040: Fix std::unique deleter for clang++-20 -stdlib=libc++

Thanks to Khem Raj for reporting this.
This commit is contained in:
Marko Mäkelä 2024-10-03 08:15:48 +03:00
parent 23debf214f
commit 170e4555e2

View file

@ -60,6 +60,7 @@ Street, Fifth Floor, Boston, MA 02110-1335 USA
#ifdef _WIN32
#include <direct.h> /* rmdir */
#endif
#include <functional>
#define ROCKSDB_BACKUP_DIR "#rocksdb"
@ -1851,7 +1852,7 @@ is_aria_log_dir_file(const datadir_node_t &node)
bool
copy_back_aria_logs(const char *dstdir)
{
std::unique_ptr<ds_ctxt_t, void (&)(ds_ctxt_t*)>
std::unique_ptr<ds_ctxt_t, std::function<void(ds_ctxt_t*)>>
ds_ctxt_aria_log_dir_path(ds_create(dstdir, DS_TYPE_LOCAL), ds_destroy);
datadir_node_t node;