Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix boost includes for ubuntu xenial.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 21 Oct 2017 20:58:04 +0000 (22:58 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 21 Oct 2017 20:58:04 +0000 (22:58 +0200)
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>