From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master

boost: update path of function_output_iterator to silence warnings

Apparently boost 1.66 moved location of the function_output_iterator.hpp
headers from boost/ to boost/iterator/ and boost 1.75 started giving
warning about it. This patch fixes the warning by adding a coditional
include depending on the version of boost used.

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>

---
diff --git a/include/osv/percpu_xmit.hh b/include/osv/percpu_xmit.hh
--- a/include/osv/percpu_xmit.hh
+++ b/include/osv/percpu_xmit.hh
@@ -18,7 +18,11 @@
 
 #include <bsd/sys/sys/mbuf.h>
 
+#if BOOST_VERSION < 106600
 #include <boost/function_output_iterator.hpp>
+#else
+#include <boost/iterator/function_output_iterator.hpp>
+#endif
 
 namespace osv {
 

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/0000000000005d6c4a05c4e97056%40google.com.

Reply via email to