Fixed freebsd build

This commit is contained in:
emeric
2023-11-14 13:25:17 +01:00
parent 83347e82fa
commit 9cfc47fc82
+4 -1
View File
@@ -28,6 +28,8 @@ extern "C"
} }
#include <array> #include <array>
#include <map>
#include <unordered_map>
#include "utils/Logger.hpp" #include "utils/Logger.hpp"
#include "utils/String.hpp" #include "utils/String.hpp"
@@ -290,7 +292,8 @@ namespace Av
{ {
// List should be sync with the demuxers shipped in the lms's docker version // List should be sync with the demuxers shipped in the lms's docker version
// + the _audioFileExtensions in ScanSettings // + the _audioFileExtensions in ScanSettings
static const std::unordered_map<std::filesystem::path, std::string_view> entries // std::filesystem::path does not seem to have std::hash specialization on freebsd
static const std::map<std::filesystem::path, std::string_view> entries
{ {
{".mp3", "audio/mpeg"}, {".mp3", "audio/mpeg"},
{".ogg", "audio/ogg"}, {".ogg", "audio/ogg"},