summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-08-24 00:03:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-08-24 00:03:52 -0400
commit9fcf48482626f20151d75a2ebb81371b45d4540a (patch)
tree48424a9a1f70fba360aba940669e031287b1a9c6 /src/stream.cc
parentff07cc6c6fe38467b897d5b665c81fcfc49e3620 (diff)
downloadfork-ledger-9fcf48482626f20151d75a2ebb81371b45d4540a.tar.gz
fork-ledger-9fcf48482626f20151d75a2ebb81371b45d4540a.tar.bz2
fork-ledger-9fcf48482626f20151d75a2ebb81371b45d4540a.zip
Moved up to Boost 1.44
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