thin-provisioning-tools/boost_168.patch
Martin Pluskal 9d233f8c56 Accepting request 629912 from home:adamm:branches:Base:System
- boost_168.patch: fix build with Boost 1.68. This version of Boost
  removes compatibility SHA1 header from Uuid library. (bsc#1105088)

OBS-URL: https://build.opensuse.org/request/show/629912
OBS-URL: https://build.opensuse.org/package/show/Base:System/thin-provisioning-tools?expand=0&rev=40
2018-08-17 12:52:35 +00:00

20 lines
655 B
Diff

Index: thin-provisioning-tools-0.7.6/thin-provisioning/thin_show_duplicates.cc
===================================================================
--- thin-provisioning-tools-0.7.6.orig/thin-provisioning/thin_show_duplicates.cc
+++ thin-provisioning-tools-0.7.6/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>