mpd/subprojects/packagefiles/libnpupnp_gcc14.patch
2024-07-05 18:26:51 +02:00

67 lines
1.6 KiB
Diff

From bb59a9d961efb3c88999f02204bd7cfb5cb45e54 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Wed, 24 Apr 2024 15:01:26 -0700
Subject: [PATCH] fix compilation with GCC14
algorithm include is needed.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
src/api/upnpapi.cpp | 1 +
src/ssdp/ssdp_ctrlpt.cpp | 1 +
src/webserver/webserver.cpp | 8 ++++----
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/api/upnpapi.cpp b/src/api/upnpapi.cpp
index 3765f5b..cce88fb 100644
--- a/src/api/upnpapi.cpp
+++ b/src/api/upnpapi.cpp
@@ -32,6 +32,7 @@
#include "config.h"
+#include <algorithm>
#include <array>
#include <mutex>
#include <sstream>
diff --git a/src/ssdp/ssdp_ctrlpt.cpp b/src/ssdp/ssdp_ctrlpt.cpp
index bfddf95..0f41649 100644
--- a/src/ssdp/ssdp_ctrlpt.cpp
+++ b/src/ssdp/ssdp_ctrlpt.cpp
@@ -36,6 +36,7 @@ nnn * Redistribution and use in source and binary forms, with or without
#ifdef INCLUDE_CLIENT_APIS
#if EXCLUDE_SSDP == 0
+#include <algorithm>
#include <chrono>
#include <cstring>
#include <iostream>
diff --git a/src/webserver/webserver.cpp b/src/webserver/webserver.cpp
index c427db3..d6184f0 100644
--- a/src/webserver/webserver.cpp
+++ b/src/webserver/webserver.cpp
@@ -43,11 +43,12 @@
#include "webserver.h"
+#include <algorithm>
+#include <cassert>
+#include <cinttypes>
#include <map>
-#include <unordered_map>
#include <mutex>
-
-#include <cinttypes>
+#include <unordered_map>
#include "genut.h"
#include "ssdplib.h"
@@ -55,7 +56,6 @@
#include "upnpapi.h"
#include "uri.h"
-#include <cassert>
#include <fcntl.h>
#include <sys/stat.h>