From 83efbca49c3c00eb563bf111b7c35dc1f5e8fd3d Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Sun, 20 Jan 2013 18:30:01 +0100 Subject: [PATCH] Fix compatibility with older Boost versions --- src/util/time.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/time.cpp b/src/util/time.cpp index d96b5ee..152d6d1 100644 --- a/src/util/time.cpp +++ b/src/util/time.cpp @@ -132,7 +132,7 @@ bool set_file_time(const boost::filesystem::path & path, std::time_t t, uint32_t times[0].tv_usec = int32_t(nsec / 1000); times[1] = times[0]; - return (utimes(path.c_str(), times) == 0); + return (utimes(path.string().c_str(), times) == 0); #elif defined(_WIN32)