aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-11 10:53:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-11 10:53:15 +0200
commit5fc7471c034c367ff5ad776c2b9d7698678266c9 (patch)
treecc500d1179eaa491eb4d0a441bcece3ec50ceff7 /libbuild2/target.ixx
parenteccd416f89007b60d467fe4da3ccf536ec3c1dec (diff)
Remove unnecessary header inclusions
Diffstat (limited to 'libbuild2/target.ixx')
-rw-r--r--libbuild2/target.ixx7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx
index fddf1b2..b1e21ae 100644
--- a/libbuild2/target.ixx
+++ b/libbuild2/target.ixx
@@ -3,12 +3,13 @@
#include <cstring> // memcpy()
-#include <libbuild2/filesystem.hxx> // mtime()
-
#include <libbuild2/export.hxx>
namespace build2
{
+ LIBBUILD2_SYMEXPORT timestamp
+ mtime (const char*); // filesystem.cxx
+
// target_key
//
inline const string& target_key::
@@ -614,7 +615,7 @@ namespace build2
{
assert (!p.empty ());
- r = build2::mtime (p).time_since_epoch ().count ();
+ r = build2::mtime (p.string ().c_str ()).time_since_epoch ().count ();
mtime_.store (r, memory_order_release);
}