diff --git a/src/utils.cpp b/src/utils.cpp
index b509cbf9bc5dd6a8e336df79f2169439bbba2edd..e267961e6370503163e2db4a798964b1330be285 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -16,6 +16,10 @@
  *  along with this program. If not, see <https://www.gnu.org/licenses/>.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "utils.h"
 #include "sockaddr.h"
 #include "default_types.h"