From c227e1579443d28510665c3927848298ae117374 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 7 Jan 2021 13:13:35 +0100 Subject: [PATCH] Fixed compilation on OSX --- src/slic3r/GUI/RemovableDriveManager.cpp | 2 +- src/slic3r/GUI/RemovableDriveManager.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/RemovableDriveManager.cpp b/src/slic3r/GUI/RemovableDriveManager.cpp index cc6c78d8d..3421654e0 100644 --- a/src/slic3r/GUI/RemovableDriveManager.cpp +++ b/src/slic3r/GUI/RemovableDriveManager.cpp @@ -283,7 +283,7 @@ void RemovableDriveManager::eject_drive() std::string correct_path(m_last_save_path); #if __APPLE__ // On Apple, run the eject asynchronously on a worker thread, see the discussion at GH issue #4844. - m_eject_thread = new std::thread([this, correct_path, drive_data]() + m_eject_thread = new boost::thread([this, correct_path, drive_data]() #else // Escape spaces on Unix systems. Why not on Apple? boost::replace_all(correct_path, " ", "\\ "); diff --git a/src/slic3r/GUI/RemovableDriveManager.hpp b/src/slic3r/GUI/RemovableDriveManager.hpp index d250f3710..f707b40c3 100644 --- a/src/slic3r/GUI/RemovableDriveManager.hpp +++ b/src/slic3r/GUI/RemovableDriveManager.hpp @@ -132,7 +132,7 @@ private: void eject_device(const std::string &path); // Opaque pointer to RemovableDriveManagerMM void *m_impl_osx; - std::thread *m_eject_thread { nullptr }; + boost::thread *m_eject_thread { nullptr }; void eject_thread_finish(); #endif };