[Zlib-devel] zlib 1.2.4.1 beta
William A. Rowe Jr.
wrowe at rowe-clan.net
Sun Mar 28 22:38:40 EDT 2010
On 3/28/2010 2:15 PM, Mark Adler wrote:
> zlibbers,
>
> You can find the 1.2.4.1 beta here:
>
> http://zlib.net/current/beta/
Mark, this no longer compiles in the most recent MS platforms because off_t
is (as I mentioned) available from sys/types.h. zconf.h encloses this header
in an unrelated test for unistd. The following patch would fix;
--- ../zlib-1.2.4.1-orig/zconf.h Sat Mar 27 23:36:30 2010
+++ zconf.h Sun Mar 28 21:34:47 2010
@@ -364,8 +364,9 @@
# define Z_HAVE_UNISTD_H
#endif
+#include <sys/types.h> /* for off_t */
+
#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE == 1
-# include <sys/types.h> /* for off_t */
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
# include <unixio.h> /* for off_t */
More information about the Zlib-devel
mailing list