diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 04:28:49 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 04:28:49 -0400 |
commit | 48d24e2a4ce911214a83492fcf5cd89bb4a3bda5 (patch) | |
tree | 2aec8a08888999d085ad08d221ef4f17d8ed3372 /src | |
parent | f35bc939c96c3a3bf09c5881d638b5ba60449c03 (diff) | |
download | fork-ledger-48d24e2a4ce911214a83492fcf5cd89bb4a3bda5.tar.gz fork-ledger-48d24e2a4ce911214a83492fcf5cd89bb4a3bda5.tar.bz2 fork-ledger-48d24e2a4ce911214a83492fcf5cd89bb4a3bda5.zip |
Use boost::iostreams::file_descriptor_sink
This is instead of the custom fdstream.hpp file I was distributing.
Diffstat (limited to 'src')
-rw-r--r-- | src/stream.cc | 3 | ||||
-rw-r--r-- | src/system.hh.in | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/stream.cc b/src/stream.cc index c7fd58fa..e39b74e0 100644 --- a/src/stream.cc +++ b/src/stream.cc @@ -100,7 +100,8 @@ namespace { } else { // parent close(pfd[0]); - *os = new boost::fdostream(pfd[1]); + typedef iostreams::stream<iostreams::file_descriptor_sink> fdstream; + *os = new fdstream(pfd[1]); } return pfd[1]; } diff --git a/src/system.hh.in b/src/system.hh.in index 1f4a7d63..2a6b41af 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -119,7 +119,6 @@ typedef std::ostream::pos_type ostream_pos_type; #if defined(HAVE_UNIX_PIPES) #include <sys/types.h> #include <sys/wait.h> -#include "fdstream.h" #endif #if defined(HAVE_GETTEXT) #include "gettext.h" @@ -154,6 +153,9 @@ typedef std::ostream::pos_type ostream_pos_type; #include <boost/foreach.hpp> #include <boost/function.hpp> #include <boost/intrusive_ptr.hpp> +#include <boost/iostreams/stream.hpp> +#include <boost/iostreams/write.hpp> +#include <boost/iostreams/device/file_descriptor.hpp> #include <boost/lexical_cast.hpp> #include <boost/operators.hpp> #include <boost/optional.hpp> |