X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_session_shared.cpp;h=da4d8e0b1cd2731c9eb5435406ced583aaf32b3f;hb=a258482a3b53b90b0932f4a789ba66e8e1576c05;hp=ddff29b6dff7e7b04abfd574d4eec28e10dbf6ce;hpb=e0bd49319bf50c78026da47b7ffe38eef46ef408;p=metaproxy-moved-to-github.git diff --git a/src/filter_session_shared.cpp b/src/filter_session_shared.cpp index ddff29b..da4d8e0 100644 --- a/src/filter_session_shared.cpp +++ b/src/filter_session_shared.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2012 Index Data + Copyright (C) 2005-2013 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -1067,7 +1067,13 @@ void yf::SessionShared::Rep::expire() while (true) { boost::xtime xt; - boost::xtime_get(&xt, boost::TIME_UTC); + boost::xtime_get(&xt, +#if BOOST_VERSION >= 105000 + boost::TIME_UTC_ +#else + boost::TIME_UTC +#endif + ); xt.sec += m_session_ttl / 3; boost::thread::sleep(xt);