head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.4 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.2 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.1.0.26 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.24 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.22 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.20 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.18 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.16 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.14 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.12 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.10 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.8 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.6 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.4 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.2 pkgsrc-2022Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2025.09.30.06.49.37; author adam; state Exp; branches; next 1.1; commitid Z4ngQRNvuPyUMHcG; 1.1 date 2022.07.03.16.09.15; author nia; state Exp; branches; next ; commitid IBERnujE1wZAYsKD; desc @@ 1.2 log @snapcast: updated to 0.33.0 0.33.0 Features Server: Add PipeWire stream reader Client: Add PipeWire player Server: process stream sources can be added via RPC Server: mDNS can be disabled Server: Audio streaming over plain TCP (port 1704) can be disabled Server: Add control script for go-librespot Bugfixes Client: Fix case of command line arguments Client: Fix deadlock during shutdown Fix building with boost v1.89.0 Fix MacOS CI General Server: Log warning if default config is missing Server: Make SSL support optional (-DBUILD_WITH_SSL) Make ALSA optional Enable OpenSSL support for Android builds in CMakeLists.txt Update Readme Build Trixie packages for amd64 tcp section in snapserver.conf renamed to tcp-control TCP streaming settings moved from stream to tcp-streaming @ text @$NetBSD: patch-common_utils.hpp,v 1.1 2022/07/03 16:09:15 nia Exp $ Add NetBSD support. --- common/utils.hpp.orig 2025-09-23 19:02:05.000000000 +0000 +++ common/utils.hpp @@@@ -38,7 +38,7 @@@@ #include #include #include -#if !defined(WINDOWS) && !defined(FREEBSD) +#if !defined(WINDOWS) && !defined(FREEBSD) && !defined(__NetBSD__) #include #endif #ifdef MACOS @@@@ -47,6 +47,10 @@@@ #include #include #endif +#ifdef __NetBSD__ +#include +#include +#endif #ifdef ANDROID #include #endif @@@@ -304,7 +308,7 @@@@ static std::string getMacAddress(int soc { if (!(ifr.ifr_flags & IFF_LOOPBACK)) // don't count loopback { -#ifdef MACOS +#if defined(MACOS) || defined(__NetBSD__) /// Dirty Mac version struct ifaddrs *ifap, *ifaptr; unsigned char* ptr; @@@@ -331,6 +335,7 @@@@ static std::string getMacAddress(int soc } #endif +#ifndef __NetBSD__ #ifdef FREEBSD if (ioctl(sock, SIOCGIFMAC, &ifr) == 0) #else @@@@ -353,6 +358,7 @@@@ static std::string getMacAddress(int soc return line; } } +#endif } } else @@@@ -367,7 +373,7 @@@@ static std::string getMacAddress(int soc return ""; char mac[19]; -#ifndef FREEBSD +#if !defined(FREEBSD) && !defined(__NetBSD__) sprintf(mac, "%02x:%02x:%02x:%02x:%02x:%02x", (unsigned char)ifr.ifr_hwaddr.sa_data[0], (unsigned char)ifr.ifr_hwaddr.sa_data[1], (unsigned char)ifr.ifr_hwaddr.sa_data[2], (unsigned char)ifr.ifr_hwaddr.sa_data[3], (unsigned char)ifr.ifr_hwaddr.sa_data[4], (unsigned char)ifr.ifr_hwaddr.sa_data[5]); @ 1.1 log @add audio/snapcast Snapcast is a multiroom client-server audio player, where all clients are time synchronized with the server to play perfectly synced audio. It's not a standalone player, but an extension that turns your existing audio player into a Sonos-like multiroom solution. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- common/utils.hpp.orig 2021-12-22 17:40:36.000000000 +0000 d7 2 a8 8 @@@@ -1,5 +1,4 @@@@ -/*** - This file is part of snapcast +/*** This file is part of snapcast Copyright (C) 2014-2020 Johannes Pohl This program is free software: you can redistribute it and/or modify @@@@ -44,7 +43,7 @@@@ a10 1 #include d12 1 a12 1 +#if defined(MACOS) || defined(__linux__) d16 1 a16 1 @@@@ -53,6 +52,10 @@@@ d27 1 a27 1 @@@@ -306,7 +309,7 @@@@ static std::string getMacAddress(int soc d36 1 a36 1 @@@@ -333,6 +336,7 @@@@ static std::string getMacAddress(int soc d44 1 a44 1 @@@@ -355,6 +359,7 @@@@ static std::string getMacAddress(int soc d52 1 a52 1 @@@@ -369,7 +374,7 @@@@ static std::string getMacAddress(int soc @