--- src/ipa/ipa.c~	2006-06-10 16:54:43.000000000 +0200
+++ src/ipa/ipa.c	2006-06-10 16:54:46.000000000 +0200
@@ -31,6 +31,12 @@
 #include <unistd.h>
 #endif
 
+#ifndef HAVE_GD
+#ifdef HAVE_LIBPNG
+#include <png.h>
+#endif
+#endif
+
 /* Define WMF_API if this is module so that ipa headers are included via "wmfdefs.h" first
  */
 #define WMF_IPA 1
