--- texk/web2c/pdftexdir/writeimg.c.orig	2005-02-03 17:16:39.000000000 +0100
+++ texk/web2c/pdftexdir/writeimg.c	2012-04-27 09:30:39.000000000 +0200
@@ -22,6 +22,7 @@
 
 #include "ptexlib.h"
 #include "image.h"
+#include "pngpriv.h"
 #include <kpathsea/c-auto.h>
 #include <kpathsea/c-memstr.h>
 
