summaryrefslogtreecommitdiff
path: root/devel/monotone/patches/patch-src_sanity.cc
blob: eded65c2b8bda610aae21043042727c601937f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-src_sanity.cc,v 1.1 2021/03/06 08:57:54 nia Exp $

A function macro named E clashes with internal boost definitions.  Rearrange
the order of header inclusion so that affected boost headers are included
before monotone defines the macro.

Also, stop bundling boost/circular_buffer, which is available in current
versions of boost.

https://src.fedoraproject.org/fork/jjames/rpms/monotone/raw/84e80f1b992f0b0dba6cfe98eb9d0c55ea39623f/f/monotone-1.1-boost.patch

--- src/sanity.cc.orig	2014-05-04 09:15:18.000000000 +0000
+++ src/sanity.cc
@@ -12,12 +12,11 @@
 #include <iterator>
 #include <fstream>
 #include <sstream>
-#include "vector.hh"
-
 #include <boost/format.hpp>
 
-// circular_buffer is not in Boost 1.34; it's in monotone/boost.
-#include "boost/circular_buffer.hpp"
+#include "vector.hh"
+
+#include <boost/circular_buffer.hpp>
 
 #include "lexical_cast.hh"
 #include "constants.hh"