Files
overlay/sci-biology/micro-manager/files/boost_ipc_detail.patch
2017-03-14 23:02:24 +01:00

25 lines
858 B
Diff

--- MMCore/FastLogger.cpp.orig 2012-09-28 21:38:41.510071984 -0400
+++ MMCore/FastLogger.cpp 2012-09-28 21:41:08.738231368 -0400
@@ -39,6 +39,12 @@
#else
#endif
#include "boost/interprocess/detail/os_thread_functions.hpp"
+#include "boost/version.hpp"
+#if BOOST_VERSION >= 104800
+# define BOOST_IPC_DETAIL boost::interprocess::ipcdetail
+#else
+# define BOOST_IPC_DETAIL boost::interprocess::detail
+#endif
using namespace std;
const char* g_textLogIniFiled = "Logging initialization failed\n";
@@ -469,7 +475,7 @@
}
// display the process id
- boost::interprocess::detail::OS_process_id_t pidd = boost::interprocess::detail::get_current_process_id();
+ BOOST_IPC_DETAIL::OS_process_id_t pidd = BOOST_IPC_DETAIL::get_current_process_id();
std::ostringstream percentPReplacement;
percentPReplacement << pidd;