aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-08-16 22:05:20 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2008-08-16 22:05:20 +0100
commit1e52083c680a8eabf27616234fed6573c9177e0d (patch)
tree3eef0536b1d7948696704609d9cb662947e6c2d8
parentb1d4ba7ddf41ae047eb2cb43f28bb48c58375021 (diff)
downloadpaludis-1e52083c680a8eabf27616234fed6573c9177e0d.tar.gz
paludis-1e52083c680a8eabf27616234fed6573c9177e0d.tar.xz
Fix GCC 4.3
-rw-r--r--paludis/repositories/e/ebuild_flat_metadata_cache.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild_flat_metadata_cache.cc b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
index 4d570ed..c473aad 100644
--- a/paludis/repositories/e/ebuild_flat_metadata_cache.cc
+++ b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
@@ -39,6 +39,7 @@
#include <functional>
#include <algorithm>
#include <cstring>
+#include <ctime>
#include <errno.h>
using namespace paludis;
@@ -52,12 +53,12 @@ namespace paludis
const Environment * const env;
const FSEntry & filename;
const FSEntry & ebuild;
- time_t master_mtime;
+ std::time_t master_mtime;
std::tr1::shared_ptr<const EclassMtimes> eclass_mtimes;
bool silent;
Implementation(const Environment * const e, const FSEntry & f, const FSEntry & eb,
- time_t m, const std::tr1::shared_ptr<const EclassMtimes> em, bool s) :
+ std::time_t m, const std::tr1::shared_ptr<const EclassMtimes> em, bool s) :
env(e),
filename(f),
ebuild(eb),
@@ -103,7 +104,7 @@ namespace
}
{
- time_t cache_time(std::max(_imp->master_mtime, _imp->filename.mtime()));
+ std::time_t cache_time(std::max(_imp->master_mtime, _imp->filename.mtime()));
bool ok(_imp->ebuild.mtime() <= cache_time);
if (! ok)
Log::get_instance()->message("e.cache.flat_list.mtime", ll_debug, lc_context)
@@ -262,7 +263,7 @@ namespace
}
EbuildFlatMetadataCache::EbuildFlatMetadataCache(const Environment * const v, const FSEntry & f,
- const FSEntry & e, time_t t, std::tr1::shared_ptr<const EclassMtimes> m, bool s) :
+ const FSEntry & e, std::time_t t, std::tr1::shared_ptr<const EclassMtimes> m, bool s) :
PrivateImplementationPattern<EbuildFlatMetadataCache>(new Implementation<EbuildFlatMetadataCache>(v, f, e, t, m, s))
{
}