gentoo-ebuilds/media-libs/rubberband/files/rubberband-4.0.0-cstdlib-include.patch
Violet Purcell f9bfbdd2bf
media-libs/rubberband: fix building w/ libc++ 21
libc++ 21 shuffled some internal includes around, so cstdlib now needs
to be explicitly included here.

Closes: https://bugs.gentoo.org/960754
Signed-off-by: Violet Purcell <vimproved@inventati.org>
Part-of: https://github.com/gentoo/gentoo/pull/43371
Closes: https://github.com/gentoo/gentoo/pull/43371
Signed-off-by: Sam James <sam@gentoo.org>
2025-08-08 09:53:59 +01:00

23 lines
678 B
Diff

From https://github.com/breakfastquay/rubberband/pull/126 Mon Sep 17 00:00:00 2001
From: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Date: Sun, 27 Jul 2025 15:53:17 +0200
Subject: [PATCH] missing include cstdlib
Fix an error with libcxx-21
>In file included from ../rubberband-4.0.0/src/common/mathmisc.cpp:24:
>../rubberband-4.0.0/src/common/mathmisc.h:58:1:
>error: unknown type name 'size_t'; did you mean 'std::size_t'?
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
--- a/src/common/mathmisc.h
+++ b/src/common/mathmisc.h
@@ -26,6 +26,8 @@
#include "sysutils.h"
+#include <cstdlib>
+
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif // M_PI