Head broken on non-windows

Hi
github HEAD version is broken on non windows machines.

IronRuby incorrectly reports it’s running on windows, I can fix that in
the
build but if there will by binary distributions an installer or
something
needs to be created because many of the information from rbconfig is
false.

Funny here’s some output of Config::CONFIG on a debian
“COMMON_MACROS”=>“WIN32_LEAN_AND_MEAN”,
“COMMON_HEADERS”=>“winsock2.h windows.h”
“arch”=>“i386-mswin32”,
“sitearch”=>“i386-msvcrt”,
“configure_args”=>“–with-make-prog=nmake --enable-shared
–with-winsock2”,
“build_os”=>“mswin32”,
“host”=>“i686-pc-mswin32”,
“host_alias”=>“i686-mswin32”,
“host_cpu”=>“i686”,
“host_vendor”=>“pc”,
“host_os”=>“mswin32”, <== my favorite
“target”=>“i386-pc-mswin32”,
“target_alias”=>“i386-mswin32”,

I get the same info when I’m on a mac. This is the cause of a lot of
errors
in gems etc because they decide they’re on windows and things fail.
Those
issues are easy to fix though.

Gems got broken today and I’m pretty sure Win32Api is the reason it’s
breaking.
I propose that IronRuby should detect which OS it’s running on and throw
a
LoadError when it’s not windows.


Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)