diff options
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> |