[BACK]Return to patch-source_SoundTouch_SoundTouch.cpp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / soundtouch / patches

File: [cvs.NetBSD.org] / pkgsrc / audio / soundtouch / patches / Attic / patch-source_SoundTouch_SoundTouch.cpp (download)

Revision 1.1, Tue Sep 23 13:28:54 2014 UTC (6 years, 2 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3

Fix build on SunOS (alloca() needs alloca.h)

$NetBSD: patch-source_SoundTouch_SoundTouch.cpp,v 1.1 2014/09/23 13:28:54 jperkin Exp $

SunOS needs alloca.h for alloca()

--- source/SoundTouch/SoundTouch.cpp.orig	2014-01-07 20:28:51.000000000 +0000
+++ source/SoundTouch/SoundTouch.cpp
@@ -69,6 +69,9 @@
 //
 ////////////////////////////////////////////////////////////////////////////////
 
+#ifdef __sun
+#include <alloca.h>
+#endif
 #include <assert.h>
 #include <stdlib.h>
 #include <memory.h>