summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-25 21:24:05 +0200
committerwm4 <wm4@nowhere>2013-11-02 19:02:42 +0100
commit1b3155cf51e2cf310d036194363d2fd6694685b8 (patch)
treec1688aca6e3d7b23c75b41fe185947152231d782
parentace9a4b6c68c898098568f2379d8261a7799a1c4 (diff)
downloadmpv-1b3155cf51e2cf310d036194363d2fd6694685b8.tar.bz2
mpv-1b3155cf51e2cf310d036194363d2fd6694685b8.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 ff931e2a0b..1ad2e1e517 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -33,7 +33,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"