diff options
-rw-r--r-- | bitcoin/build/bitcoin-0.9.0_boost_program_options.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bitcoin/build/bitcoin-0.9.0_boost_program_options.patch b/bitcoin/build/bitcoin-0.9.0_boost_program_options.patch new file mode 100644 index 00000000..1e0dcf45 --- /dev/null +++ b/bitcoin/build/bitcoin-0.9.0_boost_program_options.patch @@ -0,0 +1,28 @@ +# Between bitcoin 0.8.6 and 0.9.0 a workaround for older versions of boost +# was moved a bit down in the util.cpp file, thereby rendering it useless. +# This patch reverses that move of code. + +--- bitcoin-0.9.0/src/util.cpp.orig 2014-03-16 11:05:28.000000000 +0100 ++++ bitcoin-0.9.0/src/util.cpp 2014-03-25 12:00:33.825478432 +0100 +@@ -66,10 +66,6 @@ + #include <boost/filesystem.hpp> + #include <boost/filesystem/fstream.hpp> + #include <boost/foreach.hpp> +-#include <boost/program_options/detail/config_file.hpp> +-#include <boost/program_options/parsers.hpp> +-#include <openssl/crypto.h> +-#include <openssl/rand.h> + + // Work around clang compilation problem in Boost 1.46: + // /usr/include/boost/program_options/detail/config_file.hpp:163:17: error: call to function 'to_internal' that is neither visible in the template definition nor found by argument-dependent lookup +@@ -81,6 +77,10 @@ + } + } + ++#include <boost/program_options/detail/config_file.hpp> ++#include <boost/program_options/parsers.hpp> ++#include <openssl/crypto.h> ++#include <openssl/rand.h> + + using namespace std; + |