From: Tanu Kaskinen Date: Wed, 27 Jan 2016 11:45:51 +0000 (+0200) Subject: pph: include config.h from rate_speexrate.c X-Git-Tag: v1.1.1~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e1760840dc4710146a22458e4a804cbfc91e7630;p=alsa-plugins.git pph: include config.h from rate_speexrate.c Fixes compilation against libspeexdsp 1.2rc3. rate_speexrate.c includes speex_resampler.h, which depends on config.h by referencing the HAVE_SPEEX_SPEEXDSP_TYPES_H macro. AFAIK it's not a good idea to include config.h from headers (I don't know/remember why, though), which is why I include config.h from rate_speexrate.c instead of speex_resampler.h. Signed-off-by: Tanu Kaskinen Signed-off-by: Takashi Iwai --- diff --git a/pph/rate_speexrate.c b/pph/rate_speexrate.c index 0a1325c..8fc4cef 100644 --- a/pph/rate_speexrate.c +++ b/pph/rate_speexrate.c @@ -28,6 +28,7 @@ POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include #include #include