summaryrefslogtreecommitdiff
path: root/src/lib/types.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-06 02:37:16 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-09 23:38:28 +0200
commit96f50dd5e600925488fdd9db1580aa01b026269b (patch)
treeea8b837a596eb99a7416bfdbfd2d7e4f38603a7b /src/lib/types.cc
parent94a9473993b027b9368077009decbdd4322f90e3 (diff)
Use dcp::filesystem to wrap filesystem calls and fix_long_path
anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems.
Diffstat (limited to 'src/lib/types.cc')
-rw-r--r--src/lib/types.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/types.cc b/src/lib/types.cc
index 3ac3690c0..a87c354f3 100644
--- a/src/lib/types.cc
+++ b/src/lib/types.cc
@@ -23,6 +23,7 @@
#include "dcpomatic_assert.h"
#include <dcp/cpl.h>
#include <dcp/dcp.h>
+#include <dcp/filesystem.h>
#include <dcp/raw_convert.h>
#include <dcp/reel_asset.h>
#include <dcp/reel_file_asset.h>
@@ -71,7 +72,7 @@ CPLSummary::CPLSummary (boost::filesystem::path p)
}
boost::system::error_code ec;
- auto last_write = boost::filesystem::last_write_time (p, ec);
+ auto last_write = dcp::filesystem::last_write_time(p, ec);
last_write_time = ec ? 0 : last_write;
}