diff options
| author | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2012-02-09 14:08:24 +0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-09 18:41:57 -0800 |
| commit | b778dac1976c3d4f33bf8ee8c7c3208ca8af2563 (patch) | |
| tree | b0333951d4303a493e50de070a9507cb1092ecee /src/rt/rust_builtin.cpp | |
| parent | 372cf4954c501b8a2068cfceaa826ead77f377fd (diff) | |
| download | rust-b778dac1976c3d4f33bf8ee8c7c3208ca8af2563.tar.gz rust-b778dac1976c3d4f33bf8ee8c7c3208ca8af2563.zip | |
fix build on freebsd
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 19295167518..65e5b82f505 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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(); |
