subprojects: libnpupnp: update to 6.1.3

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2024-07-09 14:48:37 -07:00
parent bd59c889f3
commit 266deaaef1
2 changed files with 6 additions and 75 deletions

View File

@ -1,13 +1,10 @@
[wrap-file] [wrap-file]
directory = libnpupnp-6.1.2 directory = libnpupnp-6.1.3
source_url = https://www.lesbonscomptes.com/upmpdcli/downloads/libnpupnp-6.1.2.tar.gz source_url = https://www.lesbonscomptes.com/upmpdcli/downloads/libnpupnp-6.1.3.tar.gz
source_filename = libnpupnp-6.1.2.tar.gz source_filename = libnpupnp-6.1.3.tar.gz
source_hash = d83cadc997a5367030820de6c4a49130b38fe605bf3d0d2c939d7d1c06aa3226 source_hash = 80c3d5adc388e59057be52c4c33d7708efe05318487c09e342e7a1f4a83aa792
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libnpupnp_6.1.2-1/libnpupnp-6.1.2.tar.gz source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libnpupnp_6.1.3-1/libnpupnp-6.1.3.tar.gz
wrapdb_version = 6.1.2-1 wrapdb_version = 6.1.3-1
# https://github.com/medoc92/npupnp/commit/bb59a9d961efb3c88999f02204bd7cfb5cb45e54
diff_files = libnpupnp_gcc14.patch
[provide] [provide]
libnpupnp = libnpupnp_dep libnpupnp = libnpupnp_dep

View File

@ -1,66 +0,0 @@
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>