summaryrefslogtreecommitdiff
path: root/www/librewolf/files/patch-bug1659612
diff options
context:
space:
mode:
authorMartin Filla <freebsd@sysctl.cz>2023-01-19 19:52:57 +0100
committerJesper Schmitz Mouridsen <jsm@FreeBSD.org>2023-01-21 19:34:48 +0100
commit4e77dee79c17245e0c3b4b98af5a718ed2c5eb81 (patch)
tree1af2a1c76c0c6d33307e7456f888546cf0ded567 /www/librewolf/files/patch-bug1659612
parentsecurity/openscep: Mark DEPRECATED (diff)
www/librewolf: New port
PR: 258503
Diffstat (limited to '')
-rw-r--r--www/librewolf/files/patch-bug165961235
1 files changed, 35 insertions, 0 deletions
diff --git a/www/librewolf/files/patch-bug1659612 b/www/librewolf/files/patch-bug1659612
new file mode 100644
index 000000000000..dce125b883d2
--- /dev/null
+++ b/www/librewolf/files/patch-bug1659612
@@ -0,0 +1,35 @@
+media/libcubeb/src/cubeb_alsa.c:613:9: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned int, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
+ r = snprintf(node_name, sizeof(node_name), "pcm.%s", string);
+ ^
+media/libcubeb/src/cubeb_alsa.c:613:9: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
+media/libcubeb/src/cubeb_alsa.c:1168:3: error: implicitly declaring library function 'alloca' with type 'void *(unsigned int)' [-Werror,-Wimplicit-function-declaration]
+ snd_pcm_hw_params_alloca(&hw_params);
+ ^
+/usr/local/include/alsa/pcm.h:737:39: note: expanded from macro 'snd_pcm_hw_params_alloca'
+#define snd_pcm_hw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_hw_params)
+ ^
+/usr/local/include/alsa/global.h:106:57: note: expanded from macro '__snd_alloca'
+#define __snd_alloca(ptr,type) do { *ptr = (type##_t *) alloca(type##_sizeof()); memset(*ptr, 0, type##_sizeof()); } while (0)
+ ^
+media/libcubeb/src/cubeb_alsa.c:1168:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'alloca'
+/usr/local/include/alsa/pcm.h:737:39: note: expanded from macro 'snd_pcm_hw_params_alloca'
+#define snd_pcm_hw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_hw_params)
+ ^
+/usr/local/include/alsa/global.h:106:57: note: expanded from macro '__snd_alloca'
+#define __snd_alloca(ptr,type) do { *ptr = (type##_t *) alloca(type##_sizeof()); memset(*ptr, 0, type##_sizeof()); } while (0)
+ ^
+2 errors generated.
+
+--- media/libcubeb/src/cubeb_alsa.c.orig 2021-08-31 14:26:24.530548000 +0200
++++ media/libcubeb/src/cubeb_alsa.c 2021-08-31 14:26:43.081470000 +0200
+@@ -5,9 +5,7 @@
+ * accompanying file LICENSE for details.
+ */
+ #undef NDEBUG
+-#define _DEFAULT_SOURCE
+-#define _BSD_SOURCE
+-#define _XOPEN_SOURCE 500
++#define _GNU_SOURCE 1
+ #include "cubeb-internal.h"
+ #include "cubeb/cubeb.h"
+ #include <alsa/asoundlib.h>