From 8e123e7fc98bb3016669af7dfdf70470e02f7ddc Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 3 Jan 2024 15:59:42 -0800 Subject: [PATCH] test: archive: fix compilation with Windows NarrowPath is needed. Signed-off-by: Rosen Penev --- test/visit_archive.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index d2abe8dda..e4167a882 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -10,6 +10,7 @@ #include "archive/ArchivePlugin.hxx" #include "archive/ArchiveFile.hxx" #include "archive/ArchiveVisitor.hxx" +#include "fs/NarrowPath.hxx" #include "fs/Path.hxx" #include "util/PrintException.hxx" @@ -54,7 +55,7 @@ try { } const char *plugin_name = argv[1]; - const Path path = Path::FromFS(argv[2]); + const Path path = FromNarrowPath(argv[2]); /* initialize MPD */