summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.cc')
-rw-r--r--src/stream.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream.cc b/src/stream.cc
index 001e7760..5d4cf5e0 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -102,7 +102,11 @@ namespace {
else { // parent
close(pfd[0]);
typedef iostreams::stream<iostreams::file_descriptor_sink> fdstream;
+#if BOOST_VERSION >= 104400
+ *os = new fdstream(pfd[1], iostreams::never_close_handle);
+#else // BOOST_VERSION >= 104400
*os = new fdstream(pfd[1]);
+#endif // BOOST_VERSION >= 104400
}
return pfd[1];
#else