diff --git a/tests/test_nncsorter.cpp b/tests/test_nncsorter.cpp
index 2cf42c369..841ee1e08 100644
--- a/tests/test_nncsorter.cpp
+++ b/tests/test_nncsorter.cpp
@@ -17,6 +17,8 @@
along with OPM. If not, see .
*/
+#include "config.h"
+
#define BOOST_TEST_MODULE NNCSortTest
#include
#include