summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-02-04 23:07:39 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-04 23:07:39 -0500
commit986afb43d0095284902e9696f4a8cc5fda73af2d (patch)
tree2d7b6ae32226b8058428cab0944a99f342599a22
parent0f8e0251f412f82fe3217f3a301ba0f3574aea12 (diff)
downloadfork-ledger-986afb43d0095284902e9696f4a8cc5fda73af2d.tar.gz
fork-ledger-986afb43d0095284902e9696f4a8cc5fda73af2d.tar.bz2
fork-ledger-986afb43d0095284902e9696f4a8cc5fda73af2d.zip
Define BOOST_IOSTREAMS_USE_DEPRECATED
-rw-r--r--src/system.hh.in1
-rw-r--r--tools/configure.ac3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index c1cc8e30..f71dce68 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -156,6 +156,7 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/intrusive_ptr.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/write.hpp>
+#define BOOST_IOSTREAMS_USE_DEPRECATED 1
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iterator/transform_iterator.hpp>
#include <boost/lexical_cast.hpp>
diff --git a/tools/configure.ac b/tools/configure.ac
index 028727a8..c3a913e6 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -308,7 +308,8 @@ AC_CACHE_CHECK(
AC_LANG_PUSH(C++)
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
- [[#include <boost/iostreams/device/file_descriptor.hpp>
+ [[#define BOOST_IOSTREAMS_USE_DEPRECATED 1
+ #include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/version.hpp>]],
[[namespace io = boost::iostreams;