mozilla/rust — pull request #1791 by crabtw (2012-02-09 09:51:07+00:00)
Title: fix build errors on FreeBSD

* freebsd has no execvpe function, so I set the environ variable and call execvp instead.
* There is a weird problem that clang can not find INTPTR_MAX.
Although __STDC_LIMIT_MACROS is defined, I have to redefine it in rust_kernel.cpp.
* Declarations of rust_scheduler in rust_kernel.cpp and rust_scheduler.h are different, so I change struct to class.
* libuv has different configs on unix platforms.
In order to make them distinguishable, I move the makefiles of linux platform to unix/linux and move makefiles of freebsd to unix/freebsd.