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_kernel.cpp | |
| parent | 372cf4954c501b8a2068cfceaa826ead77f377fd (diff) | |
| download | rust-b778dac1976c3d4f33bf8ee8c7c3208ca8af2563.tar.gz rust-b778dac1976c3d4f33bf8ee8c7c3208ca8af2563.zip | |
fix build on freebsd
Diffstat (limited to 'src/rt/rust_kernel.cpp')
| -rw-r--r-- | src/rt/rust_kernel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index d014877c278..e210289cdb8 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -1,3 +1,8 @@ +// A workaround that makes INTPTR_MAX be visible +#ifdef __FreeBSD__ +#define __STDC_LIMIT_MACROS 1 +#endif + #include <vector> #include "rust_internal.h" #include "rust_util.h" |
