[Zlib-devel] [PATCH] Check on _LARGEFILE64_SOURCE and friends are too strict
Mark Adler
madler at alumni.caltech.edu
Thu Apr 1 17:19:04 EDT 2010
On Apr 1, 2010, at 2:11 PM, Xin LI wrote:
> Is there any standard requiring _LARGEFILE64_SOURCE to be defined as a number?
Yes. This is the LFS document:
http://www.unix.org/version2/whatsnew/lfs20mar.html
which states that it has to be defined as 1. However in the same document, they give an example where it is just defined and not set to 1. Also since GNU only looks for it to be defined, I will update zlib accordingly.
Maybe something like defined(_LARGEFILE64_SOURCE) && _LARGEFILE64_SOURCE != 0 .
Mark
More information about the Zlib-devel
mailing list