From b778dac1976c3d4f33bf8ee8c7c3208ca8af2563 Mon Sep 17 00:00:00 2001 From: Jyun-Yan You Date: Thu, 9 Feb 2012 14:08:24 +0800 Subject: fix build on freebsd --- src/rt/rust_kernel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt/rust_kernel.cpp') 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 #include "rust_internal.h" #include "rust_util.h" -- cgit 1.4.1-3-g733a5