openbsd-ports/audio/deadbeef/patches/patch-plugins_cdda_cdda_c

15 lines
451 B
Plaintext
Raw Normal View History

$OpenBSD: patch-plugins_cdda_cdda_c,v 1.1.1.1 2012/08/08 18:06:48 shadchin Exp $
--- plugins/cdda/cdda.c.orig Thu May 31 03:16:28 2012
+++ plugins/cdda/cdda.c Tue Jun 5 21:57:26 2012
@@ -52,6 +52,10 @@
#define SAMPLESIZE 4 //bytes
#define BUFSIZE (CDIO_CD_FRAMESIZE_RAW * 2)
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
+#define alloca(size) __builtin_alloca(size)
+#endif
+
static DB_decoder_t plugin;
static DB_functions_t *deadbeef;