lua-users home
lua-l archive

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


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.  

  -spc