fix build on freebsd

This commit is contained in:
Jyun-Yan You
2012-02-09 14:08:24 +08:00
committed by Brian Anderson
parent 372cf4954c
commit b778dac197
20 changed files with 858 additions and 11 deletions

View File

@@ -15,6 +15,10 @@
#include <sys/time.h>
#endif
#ifdef __FreeBSD__
extern char **environ;
#endif
extern "C" CDECL rust_str*
last_os_error() {
rust_task *task = rust_task_thread::get_task();