Skip to content

Commit

Permalink
Fixed freebsd build
Browse files Browse the repository at this point in the history
  • Loading branch information
epoupon committed Nov 14, 2023
1 parent 83347e8 commit 9cfc47f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/av/impl/AudioFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ extern "C"
}

#include <array>
#include <map>
#include <unordered_map>

#include "utils/Logger.hpp"
#include "utils/String.hpp"
Expand Down Expand Up @@ -290,7 +292,8 @@ namespace Av
{
// List should be sync with the demuxers shipped in the lms's docker version
// + 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"},
{".ogg", "audio/ogg"},
Expand Down

0 comments on commit 9cfc47f

Please sign in to comment.