blob: 8e5b6a2a2136cfe5e60c50d51a71377806656ac1 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 4350314c941489833a8baa930e16512e55f72a13 Mon Sep 17 00:00:00 2001
2From: Tanu Kaskinen <tanuk@iki.fi>
3Date: Wed, 27 Jan 2016 13:22:38 +0200
4Subject: [PATCH] pph: include config.h from rate_speexrate.c
5
6Fixes compilation against libspeexdsp 1.2rc3.
7
8rate_speexrate.c includes speex_resampler.h, which depends on config.h
9by referencing the HAVE_SPEEX_SPEEXDSP_TYPES_H macro. AFAIK it's not
10a good idea to include config.h from headers (I don't know/remember
11why, though), which is why I include config.h from rate_speexrate.c
12instead of speex_resampler.h.
13
14Upstream-Status: Accepted [expected in 1.1.1]
15
16Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
17---
18 pph/rate_speexrate.c | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/pph/rate_speexrate.c b/pph/rate_speexrate.c
22index 0a1325c..8fc4cef 100644
23--- a/pph/rate_speexrate.c
24+++ b/pph/rate_speexrate.c
25@@ -28,6 +28,7 @@
26 POSSIBILITY OF SUCH DAMAGE.
27 */
28
29+#include "config.h"
30 #include <stdio.h>
31 #include <alsa/asoundlib.h>
32 #include <alsa/pcm_rate.h>
33--
342.7.0.rc3
35