void-packages/srcpkgs/snapper/patches/btrfs4.19_swap_fix.patch
Stephen Walker-Weinshenker f48d02bcd5 snapper: update to 0.8.1
2018-12-05 00:01:49 -08:00

27 lines
534 B
Diff

fixing btrfs4.19 issues conflicting with boost
--- snapper/Btrfs.cc
+++ snapper/Btrfs.cc
@@ -41,6 +41,9 @@
#include <btrfs/send.h>
#include <btrfs/send-stream.h>
#include <btrfs/send-utils.h>
+#ifdef swap
+#undef swap
+#endif
#include <boost/version.hpp>
#include <boost/thread.hpp>
#endif
--- snapper/BtrfsUtils.cc
+++ snapper/BtrfsUtils.cc
@@ -34,6 +34,9 @@
#ifdef HAVE_LIBBTRFS
#include <btrfs/ioctl.h>
#include <btrfs/send-utils.h>
+#ifdef swap
+#undef swap
+#endif
#endif
#include <algorithm>
#include <functional>