We need to ensure that off64_t is defined when building with
_LARGEFILE64_SOURCE.

--- zlib-1.2.3.3.old/zconf.h	2006-12-31 17:23:02 +0000
+++ zlib-1.2.3.3/zconf.h	2007-06-12 15:20:36 +0000
@@ -353,6 +353,10 @@
 
 #include "zlibdefs.h"       /* created by configure */
 
+#ifdef _LARGEFILE64_SOURCE
+#include <sys/types.h>
+#endif
+
 #ifndef SEEK_SET
 #  define SEEK_SET        0       /* Seek from beginning of file.  */
 #  define SEEK_CUR        1       /* Seek from current position.  */

