[Zlib-devel] zlib 1.2.4.2 ready for its close up

Török Edwin edwintorok at gmail.com
Sat Apr 10 15:50:45 EDT 2010


On 04/10/2010 10:15 PM, Mark Adler wrote:
> On Apr 10, 2010, at 1:55 AM, Arkadiusz Miskiewicz wrote:
>> Who is supposed to define _LARGEFILE64_SOURCE ?
>>
>> in
>> #if _LARGEFILE64_SOURCE&&  _LFS64_LARGEFILE
>>
>> #if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE
>
> No one is supposed to define it.  Those constructs with undefined symbols are supposed to work (and do work at least with my gcc), but apparently it doesn't always work.  (What version of gcc are you using?)
>
> I will try to avoid those constructs, but it may get messy.

Try using #if defined(_LARGEFILE64_SOURCE) instead of
#if _LARGEFILE64_SOURCE.

BTW all good here on Debian unstable/x86-64. Though _LARGEFILE64_SOURCE 
is defined by the makefile (even in 32-bit mode):
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/adler32.o adler32.c


Best regards,
--Edwin




More information about the Zlib-devel mailing list