gentoo/net-libs/miniupnpc/files/miniupnpc-2.3.3-cstddef.patch
James Le Cuirot 4b24bd5179
net-libs/miniupnpc: Backport upstream patch to add missing cstddef include
Building against this with GCC 15 can fail. This applies to 2.3.3 only. 2.3.2
doesn't use size_t.

Closes: https://bugs.gentoo.org/956800
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/42600
Closes: https://github.com/gentoo/gentoo/pull/42600
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-06-15 05:35:27 +02:00

16 lines
386 B
Diff

From e263ab6f56c382e10fed31347ec68095d691a0e8 Mon Sep 17 00:00:00 2001
From: Thomas Bernard <miniupnp@free.fr>
Date: Thu, 29 May 2025 00:35:21 +0200
Subject: [PATCH] upnpcommands.h: #include <stddef.h> for size_t
--- a/include/upnpcommands.h
+++ b/include/upnpcommands.h
@@ -21,6 +21,7 @@
*
*/
+#include <stddef.h>
#include "miniupnpc_declspec.h"
#include "miniupnpctypes.h"