diff --git a/libavcodec/arm/vp8.h b/libavcodec/arm/vp8.h
index 0fb4edfbab23c299203faade179c8d84e68f670c..fc6523e690127ae1ba61144d1829bc38781be79c 100644
--- a/libavcodec/arm/vp8.h
+++ b/libavcodec/arm/vp8.h
@@ -19,6 +19,8 @@
 #ifndef AVCODEC_ARM_VP8_H
 #define AVCODEC_ARM_VP8_H
 
+#include "config.h"
+
 #if HAVE_ARMV6
 #define decode_block_coeffs_internal ff_decode_block_coeffs_armv6
 int ff_decode_block_coeffs_armv6(VP56RangeCoder *rc, DCTELEM block[16],