summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-25 21:24:05 +0200
committerwm4 <wm4@nowhere>2013-10-25 21:25:54 +0200
commitd8896f0dba78d05f7ceb50ae9ca5097f384945bd (patch)
tree68fc061b40fe05cd2a22b941e1337c03782e18ef
parent950ad5a412c7ca1295f8a0da45bdd7c822ebea49 (diff)
downloadmpv-d8896f0dba78d05f7ceb50ae9ca5097f384945bd.tar.bz2
mpv-d8896f0dba78d05f7ceb50ae9ca5097f384945bd.tar.xz
ao_alsa: don't include alloca.h
It's true that ALSA uses alloca() in some of its API functions, but since this is hidden behind macros in the ALSA headers, we have no reason to include alloca.h ourselves. Might help with portability (FreeBSD).
-rw-r--r--audio/out/ao_alsa.c1
-rw-r--r--stream/ai_alsa1x.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index d2c79c484c..1d0d19230f 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -34,7 +34,6 @@
#include <ctype.h>
#include <math.h>
#include <string.h>
-#include <alloca.h>
#include "config.h"
#include "mpvcore/options.h"
diff --git a/stream/ai_alsa1x.c b/stream/ai_alsa1x.c
index 82dec5669d..750e43b2dd 100644
--- a/stream/ai_alsa1x.c
+++ b/stream/ai_alsa1x.c
@@ -19,7 +19,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
-#include <alloca.h>
#include "config.h"