--- pngrewrite.c.orig	2009-06-01 21:12:19.000000000 +0200
+++ pngrewrite.c	2009-06-01 21:12:29.000000000 +0200
@@ -89,6 +89,7 @@
 //#define PNGRW_SUPPORT_1_ARG_MODE
 #define PNGRW_PALSORT_BY_FREQUENCY
 
+#include <png.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -109,8 +110,6 @@
 #include <unistd.h>  /* for isatty() */
 #endif
 
-#include <png.h>
-
 struct errstruct {
 	jmp_buf jbuf;
 	char errmsg[200];
