--- DirectFB-1.6.0/src/core/surface.c.orig	2012-06-16 20:29:59.307413688 +0200
+++ DirectFB-1.6.0/src/core/surface.c	2012-06-16 20:32:21.912456302 +0200
@@ -49,6 +49,9 @@
 #include <gfx/convert.h>
 #include <gfx/util.h>
 
+#ifdef USE_ZLIB
+#include <zlib.h>
+#endif
 
 D_DEBUG_DOMAIN( Core_Surface, "Core/Surface", "DirectFB Core Surface" );
 
