--- a/src/memprof.h
+++ b/src/memprof.h
@@ -24,6 +24,7 @@
 #include <gtk/gtkwidget.h>
 #include <stdio.h>
 #include <sys/types.h>
+#include "config.h"
 #include "bfd.h"
 #include "stackstash.h"
 #include "binfile.h"
