[Mono-list] Porting mono to Solaris/SPARC

Paolo Molaro lupus@ximian.com
Mon, 18 Feb 2002 12:48:17 +0100


On 02/16/02 Jeffrey Stedfast wrote:
> Solaris doesn't seem to have EDOTDOT or ENOMEDIUM and so
> mono/wrapper/genwrapper.pl fails. I've removed them from genwrapper.pl
> and all builds well and good again but I'm not sure if these are needed.
> If they aren't needed, perhaps we should remove them altogether? and if
> they should be defined if the system defines them, how/where should I
> modify the code to conditionally include them?

I think we can safely ignore them.

> I've had to change the definition of MonoWrapperStat to have members
> mst_* rather than st_* because Solaris systems (and possibly others?)
> have macros for st_atime, st_mtime, and st_ctime that are defined based
> on whether or not to use stat64. I assume this probably affects any C#
> code that uses Wrapper.cs?

Yes, see corlib/Unix/Wrapper.cs, though the actual names of the fields
are not important, I think. You should copy over the Wrapper.cs file
generated in the wrapper dir and test compile corlib to make sure.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better