[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 1 Apr 2014 13:00:20 -0300
> It was thus said that the Great Roberto Ierusalimschy once stated:
> > > On Solaris flockfile and friends aren't visible by default. [...]
> >
> > Do you know a reliable environment variable that can be used to detect
> > Solaris and friends?
>
> When compiling C code, I check for __SunOS. As for environment variable,
> I just logged into our Solaris systems and found
>
> $HOSTTYPE
> $MACHTYPE
>
> set ("sparc" and "sparc-sun-solaris2.10" respectively). I don't know if
> those will always be set.
Can you check whether Lua compiles if you define
-D_POSIX_C_SOURCE=199506L (or just -D_POSIX_C_SOURCE),
instead of -D_REENTRANT? Would you have any reason to prefer
one to another?
-- Roberto