diff --git a/src/ftfont.h b/src/ftfont.h
index c94a1f24b2b..6a1ca92f4d8 100644
--- a/src/ftfont.h
+++ b/src/ftfont.h
@@ -25,6 +25,9 @@ along with GNU Emacs. If not, see . */
#include
#include FT_FREETYPE_H
#include FT_SIZES_H
+#ifdef FT_BDF_H
+#include FT_BDF_H
+#endif
#ifdef HAVE_LIBOTF
#include