snapcast: fix compilation with boost 1.89.0

Boost upgrade hit Snapcast again: badaix/snapcast#1413

This patch is based on commit badaix/snapcast@d2e1635ebd ("Fix
building with boost v1.89.0").

Refs: 965dc7088e ("boost: Updates package to version 1.89.0")

Signed-off-by: Szabolcs Hubai <szab.hu@gmail.com>
This commit is contained in:
Szabolcs Hubai
2025-08-24 15:37:40 +02:00
committed by Tianling Shen
parent 3aef4a36a3
commit 7dee0d0937

View File

@@ -0,0 +1,19 @@
From d2e1635ebd96ac76cc779cb3ab73bae10fd88fd1 Mon Sep 17 00:00:00 2001
From: badaix <johannes.pohl@badaix.de>
Date: Thu, 14 Aug 2025 20:25:01 +0200
Subject: [PATCH] Fix building with boost v1.89.0
---
client/player/alsa_player.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
--- a/client/player/alsa_player.cpp
+++ b/client/player/alsa_player.cpp
@@ -30,6 +30,7 @@
// standard headers
#include <chrono>
+#include <cmath>
using namespace std::chrono_literals;