about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorJyun-Yan You <jyyou@cs.nctu.edu.tw>2012-02-09 14:08:24 +0800
committerBrian Anderson <banderson@mozilla.com>2012-02-09 18:41:57 -0800
commitb778dac1976c3d4f33bf8ee8c7c3208ca8af2563 (patch)
treeb0333951d4303a493e50de070a9507cb1092ecee /src/rt/rust_kernel.cpp
parent372cf4954c501b8a2068cfceaa826ead77f377fd (diff)
downloadrust-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.cpp5
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"