lua-users home
lua-l archive

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


2013/11/11 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
> Just so it's clear: now is the time to remind us of any glitches you
> have found in Lua 5.2. In particular, problems in the Makefiles.
> Just have a look at the bug list to see what has been reported before:
>         http://www.lua.org/bugs.html#5.2.2
>
> All feedback welcome. Thanks.

I work on embedded linux system (see http://buildroot.net/) where the
C lib has or NOT the Large File Support.
Could you remove from the top of src/liolib.c :

    /*
    ** POSIX idiosyncrasy!
    ** This definition must come before the inclusion of 'stdio.h'; it
    ** should not affect non-POSIX systems
    */
    #if !defined(_FILE_OFFSET_BITS)
    #define    _LARGEFILE_SOURCE    1
    #define _FILE_OFFSET_BITS 64
    #endif

and add to CFLAGS : `-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE`.

François

> --lhf
>