diff --git a/config.tests/libvpx/libvpx.cpp b/config.tests/libvpx/libvpx.cpp
index 258790309e457b68cfda65e52a864fa76ad96628..ec261cd5aaa6db482fa57f56856079c5f9dee733 100644
--- a/config.tests/libvpx/libvpx.cpp
+++ b/config.tests/libvpx/libvpx.cpp
@@ -28,6 +28,11 @@
 
 #include <vpx/svc_context.h>
 #include <vpx/vpx_frame_buffer.h>
+#include <vpx/vp8dx.h>
+
+#ifndef VPX_CTRL_VPXD_GET_LAST_QUANTIZER
+#error "This version of libvpx is too old, it is missing VPX_CTRL_VPXD_GET_LAST_QUANTIZER define"
+#endif
 
 int main(int, char **)
 {