diff --git a/src/cdi.h b/src/cdi.h
index 4ffa0de6a8e5681ae8bffacc460dd679c1ed9b1f..3fb9a7f1dc3e9ab46a56fe22f6b6ec6cb2be3a2a 100644
--- a/src/cdi.h
+++ b/src/cdi.h
@@ -7,6 +7,10 @@
 #ifndef  CDI_H_
 #define  CDI_H_
 
+#if defined (HAVE_CONFIG_H)
+#  include "config.h"
+#endif
+
 #include <stdio.h>
 #include <sys/types.h>
 /*