lua-users home
lua-l archive

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



On Sat, Nov 1, 2014, at 02:07 PM, Luiz Henrique de Figueiredo wrote:
> > This bug[1] also breaks software using liblua on OSX10.4 (compiler is
> > apple-gcc42 5666.3_14) - please can you fix it?
> > 
> > [1]http://lua-users.org/lists/lua-l/2011-12/msg00707.html
> 
> In liolib.c, add this
> 
> #if defined(LUA_USE_POSIX)
> #include <sys/types.h>
> #endif
> 
> just after
> 
> #include "lualib.h"
> 
 Yes, that's one way for the end-user to fix it - but they may not have
 the knowledge even to know where to begin looking for the problem.
If it gets fixed in liblua, then everything that uses liblua
automatically starts working again as soon as the new version propagates
through the dependent software.
 If that patch should only be applied in certain cases, can you detect
 the OS and version and make the include conditional on that?
GD

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again