diff --git a/xbob/io/externals.cpp b/xbob/io/externals.cpp
index af243818d4a05d9c491d9967315faf39d523eda9..5320e4524d4837f9a7c0819ad8588df1670eb0c6 100644
--- a/xbob/io/externals.cpp
+++ b/xbob/io/externals.cpp
@@ -15,6 +15,7 @@
 #include <boost/preprocessor/stringize.hpp>
 #include <boost/format.hpp>
 
+#include <bob/config.h>
 #include <bob/io/CodecRegistry.h>
 #include <bob/io/VideoUtilities.h>