test: archive: fix compilation with Windows

NarrowPath is needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2024-01-03 15:59:42 -08:00
parent e8163124e3
commit 8e123e7fc9
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#include "archive/ArchivePlugin.hxx" #include "archive/ArchivePlugin.hxx"
#include "archive/ArchiveFile.hxx" #include "archive/ArchiveFile.hxx"
#include "archive/ArchiveVisitor.hxx" #include "archive/ArchiveVisitor.hxx"
#include "fs/NarrowPath.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "util/PrintException.hxx" #include "util/PrintException.hxx"
@ -54,7 +55,7 @@ try {
} }
const char *plugin_name = argv[1]; const char *plugin_name = argv[1];
const Path path = Path::FromFS(argv[2]); const Path path = FromNarrowPath(argv[2]);
/* initialize MPD */ /* initialize MPD */