diff options
Diffstat (limited to 'audio/pd/patches/patch-src_m__binbuf.c')
-rw-r--r-- | audio/pd/patches/patch-src_m__binbuf.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/pd/patches/patch-src_m__binbuf.c b/audio/pd/patches/patch-src_m__binbuf.c new file mode 100644 index 00000000000..396705df820 --- /dev/null +++ b/audio/pd/patches/patch-src_m__binbuf.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_m__binbuf.c,v 1.1.1.1 2011/09/15 01:05:05 wiz Exp $ + +alloca.h is not portable. + +--- src/m_binbuf.c.orig 2011-03-10 06:02:41.000000000 +0000 ++++ src/m_binbuf.c +@@ -530,11 +530,7 @@ done: + + #define SMALLMSG 5 + #define HUGEMSG 1000 +-#ifdef MSW + #include <malloc.h> +-#else +-#include <alloca.h> +-#endif + #if HAVE_ALLOCA + #define ATOMS_ALLOCA(x, n) ((x) = (t_atom *)((n) < HUGEMSG ? \ + alloca((n) * sizeof(t_atom)) : getbytes((n) * sizeof(t_atom)))) |