]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
pph: include config.h from rate_speexrate.c
authorTanu Kaskinen <tanuk@iki.fi>
Wed, 27 Jan 2016 11:45:51 +0000 (13:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 28 Jan 2016 06:21:35 +0000 (07:21 +0100)
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 <tanuk@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
pph/rate_speexrate.c

index 0a1325c323687d1df67134c0b0db4cebbc190621..8fc4cef00eddc6f2da366075f02c913cdace8c0a 100644 (file)
@@ -28,6 +28,7 @@
    POSSIBILITY OF SUCH DAMAGE.
 */
 
+#include "config.h"
 #include <stdio.h>
 #include <alsa/asoundlib.h>
 #include <alsa/pcm_rate.h>