From f8a623d54777d675579e485a24f10bf24cc59cc3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Feb 2009 00:00:57 -0400 Subject: Conditionalized some boost::filesystem calls that were too new. --- src/stream.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/stream.cc b/src/stream.cc index a9ecfe6a..cf85f2d4 100644 --- a/src/stream.cc +++ b/src/stream.cc @@ -87,7 +87,11 @@ namespace { // Find command name: its the substring starting right of the // rightmost '/' character in the pager pathname. See manpage for // strrchr. +#if BOOST_VERSION >= 103700 path basename(pager_path.filename()); +#else + path basename(pager_path.leaf()); +#endif execlp(pager_path.string().c_str(), basename.string().c_str(), (char *)0); -- cgit v1.2.3