head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.06.25.08.16.54; author wiz; state Exp; branches; next ; commitid BpEIr6md5BNQE9LG; desc @@ 1.1 log @gerbera: fix build Not sure where these std:: problems come from, the fmt changes are needed for fmtlib 12.2.0 @ text @$NetBSD$ Fix build. https://github.com/gerbera/gerbera/issues/3897 --- src/util/url_utils.cc.orig 2026-06-25 08:10:22.024508085 +0000 +++ src/util/url_utils.cc @@@@ -141,10 +141,10 @@@@ std::string urlUnescape(std::string_view str) char chi = data[i++]; char clo = data[i++]; - auto pos = std::strchr(hexCharS2, chi); + auto pos = strchr(hexCharS2, chi); int hi = pos ? pos - hexCharS2 : 0; - pos = std::strchr(hexCharS2, clo); + pos = strchr(hexCharS2, clo); int lo = pos ? pos - hexCharS2 : 0; int ascii = (hi << 4) | lo; @@@@ -186,11 +186,11 @@@@ std::map dictDecode(std::str const char* data = url.data(); const char* dataEnd = data + url.length(); while (data < dataEnd) { - const char* ampPos = std::strchr(data, '&'); + const char* ampPos = strchr(data, '&'); if (!ampPos) { ampPos = dataEnd; } - const char* eqPos = std::strchr(data, '='); + const char* eqPos = strchr(data, '='); if (eqPos && eqPos < ampPos) { auto key = std::string_view(data, eqPos - data); auto value = std::string_view(eqPos + 1, ampPos - eqPos - 1); @