community/sox: fix build with gcc14

This commit is contained in:
znley 2024-08-15 07:43:55 +00:00 committed by J0WI
parent 66fea5ca08
commit 2665f421f1
2 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,7 @@ source="https://downloads.sourceforge.net/sourceforge/sox/sox-$pkgver.tar.gz
fix-resource-leak-hcom.patch
fix-regression-in-CVE-2017-11358.patch
fix-resource-leak-comments.patch
implicit.patch
"
# secfixes:
@ -129,4 +130,5 @@ eef1014ccfce344f03eae4ede810a66db221c952dd2342943ee089f09420dac5bdb3820b5fb7975d
648431fddd81b2bda4ba614cde2a6f15caf8c26e5529788025f454c46e7617a6fc46433b5e863a0d9e51abcc5fd98db4ff6771a6fc910280423224c863da2bda fix-resource-leak-hcom.patch
67d4b8f4d7b240f4ee38c78d86b52a1113d2403429035fc7ba58d94966cb0e2661e419b36e2a352adc07fd5db24d2daff587447c65932315faf38a640fcadb1a fix-regression-in-CVE-2017-11358.patch
86d75bbbca5bfd70d4b9e8c7997849052feb6abfa20a658d7b1d5eb03f49077a0260fa62be85589c95fe55d4d9327a6d7c2c0870936af41533d0d28a5fce71d4 fix-resource-leak-comments.patch
ad9ef71709de50e8b836e77e9155ceefde09403b12afdc2c6674c474b647dbddf7ccee7541e4efc970bfad441f7a436fc723034c6acb82a1b2d27a0534e6b0db implicit.patch
"

View File

@ -0,0 +1,12 @@
diff --git a/src/sox_sample_test.h b/src/sox_sample_test.h
index 62b55e4..17f0069 100644
--- a/src/sox_sample_test.h
+++ b/src/sox_sample_test.h
@@ -19,6 +19,7 @@
#undef NDEBUG /* Must undef above assert.h or other that might include it. */
#endif
#include <assert.h>
+#include <math.h>
#include "sox.h"
#define TEST_UINT(bits) \