lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2013/11/14 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> 2013/11/14 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> >> I work on embedded linux system (see http://buildroot.net/) where the
>> >> C lib has or NOT the Large File Support.
>> >
>> > But is it POSIX? What target are you using to build Lua?
>> >
>> >> Could you remove from the top of src/liolib.c :
>> >
>> >>     #if !defined(_FILE_OFFSET_BITS)
>> >>     #define    _LARGEFILE_SOURCE    1
>> >>     #define _FILE_OFFSET_BITS 64
>> >>     #endif
>> >
>> > Why does this not work for you?
>>
>> find in attachment, a log of a build when these lines are not removed.
>
> Can you try compiling your code defining _FILE_OFFSET_BITS to 32? (For
> instance you can add the option '-D_FILE_OFFSET_BITS=32' to cc.)
>

Ok, with Lua 5.2.2 & 5.2.3-rc1.

François

> -- Roberto
>