Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix boost includes for ubuntu xenial.
[simgrid.git] / src / kernel / context / ContextBoost.hpp
index bddbb1b..a067e8a 100644 (file)
@@ -6,7 +6,12 @@
 #ifndef SIMGRID_SIMIX_BOOST_CONTEXT_HPP
 #define SIMGRID_SIMIX_BOOST_CONTEXT_HPP
 
-#include <boost/context/all.hpp>
+#include <boost/version.hpp>
+#if BOOST_VERSION < 106100
+#include <boost/context/fcontext.hpp>
+#else
+#include <boost/context/detail/fcontext.hpp>
+#endif
 
 #include <cstdint>
 #include <functional>