[Zlib-devel] [PATCH] Check on _LARGEFILE64_SOURCE and friends are too strict

Mark Adler madler at alumni.caltech.edu
Thu Apr 1 19:10:22 EDT 2010


On Apr 1, 2010, at 2:41 PM, John Bowler wrote:
> Indeed, everywhere I could find where it was in an example with was set to 1 (-D_LARGEFILE64_SOURCE on the cc command line)

Yes, you're right.  I forgot that -D did that.  (I was thinking that -D without an = was the same as #define without a value.)

> BTW, after reading that document I conclude zlib.h is correct.

I concluded that too, hence the changes I made.  But correct isn't always portable.  I will check the GNU header files on a Linux system with large file support to see if they obey the document.

Mark





More information about the Zlib-devel mailing list