thin-provisioning-tools/boost_168.patch

20 lines
655 B
Diff

Index: thin-provisioning-tools-0.8.3/thin-provisioning/thin_show_duplicates.cc
===================================================================
--- thin-provisioning-tools-0.8.3.orig/thin-provisioning/thin_show_duplicates.cc
+++ thin-provisioning-tools-0.8.3/thin-provisioning/thin_show_duplicates.cc
@@ -40,7 +40,14 @@
#include "thin-provisioning/superblock.h"
#include "thin-provisioning/variable_chunk_stream.h"
+#include <boost/version.hpp>
+
+#if BOOST_VERSION >= 106800
+#include <boost/uuid/detail/sha1.hpp>
+#else
#include <boost/uuid/sha1.hpp>
+#endif
+
#include <boost/lexical_cast.hpp>
#include <boost/optional.hpp>
#include <deque>