[Zlib-devel] zlib 1.2.4.3 for your perusal

Mark Adler madler at alumni.caltech.edu
Sun Apr 18 01:41:14 EDT 2010


On Apr 12, 2010, at 12:55 PM, Xin LI wrote:
> #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
> 
> Instead of:
> 
> #if defined(Z_HAVE_UNISTD_H)

The LFS document specifies that unistd.h will contain the definition of _LFS64_LARGEFILE when _LARGEFILE64_SOURCE is defined.  If someone tries to define _LARGEFILE64_SOURCE and there is no unistd.h, which means the system doesn't really have large file support, then it is best at that point for the compilation to throw an error.

Mark





More information about the Zlib-devel mailing list