[MPlayer-cvslog] r27313 - in trunk: configure libao2/ao_alsa.c stream/ai_alsa.c stream/ai_alsa1x.c

reimar subversion at mplayerhq.hu
Thu Jul 17 19:11:31 CEST 2008


Author: reimar
Date: Thu Jul 17 19:11:30 2008
New Revision: 27313

Log:
Our ALSA code needs alloca, so check for it in configure and include alloca.h

Modified:
   trunk/configure
   trunk/libao2/ao_alsa.c
   trunk/stream/ai_alsa.c
   trunk/stream/ai_alsa1x.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Thu Jul 17 19:11:30 2008
@@ -5205,6 +5205,10 @@ fi
 echores "$_openal"
 
 echocheck "ALSA audio"
+if test "$_alloca" != yes ; then
+  _alsa=no
+  _res_comment="alloca missing"
+fi
 if test "$_alsa" != no ; then
   _alsa=no
   cat > $TMPC << EOF

Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c	(original)
+++ trunk/libao2/ao_alsa.c	Thu Jul 17 19:11:30 2008
@@ -19,6 +19,7 @@
 #include <ctype.h>
 #include <math.h>
 #include <string.h>
+#include <alloca.h>
 
 #include "config.h"
 #include "subopt-helper.h"

Modified: trunk/stream/ai_alsa.c
==============================================================================
--- trunk/stream/ai_alsa.c	(original)
+++ trunk/stream/ai_alsa.c	Thu Jul 17 19:11:30 2008
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
+#include <alloca.h>
 
 #include "config.h"
 

Modified: trunk/stream/ai_alsa1x.c
==============================================================================
--- trunk/stream/ai_alsa1x.c	(original)
+++ trunk/stream/ai_alsa1x.c	Thu Jul 17 19:11:30 2008
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
+#include <alloca.h>
 
 #include "config.h"
 



More information about the MPlayer-cvslog mailing list