diff --git a/src/image.c b/src/image.c
index 41eeebff36e..34936977a40 100644
--- a/src/image.c
+++ b/src/image.c
@@ -23,6 +23,7 @@ along with GNU Emacs. If not, see . */
#include
#include
#include
+#include
/* Include this before including to work around bugs with
older libpng; see Bug#17429. */