diff --git a/test/idct_test.cc b/test/idct_test.cc
index ea61e0b18d1b1ad1b6d56c706ed20996f671e6b8..2c7fa0ef80fc8246b872eee3b1bb8cde8bd4f1cb 100644
--- a/test/idct_test.cc
+++ b/test/idct_test.cc
@@ -16,6 +16,8 @@ extern "C" {
 #include "test/register_state_check.h"
 #include "third_party/googletest/src/include/gtest/gtest.h"
 
+#include "vpx/vpx_integer.h"
+
 typedef void (*idct_fn_t)(int16_t *input, unsigned char *pred_ptr,
                           int pred_stride, unsigned char *dst_ptr,
                           int dst_stride);