From afe56a95e9c31cef4ecea1af82c3da0713c6d9be Mon Sep 17 00:00:00 2001 From: Arcterus Date: Wed, 18 Jun 2014 20:19:50 -0700 Subject: [PATCH] common: make libc reference in util look for the libc in util --- common/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/util.rs b/common/util.rs index d5e65c7f6..1accfbf71 100644 --- a/common/util.rs +++ b/common/util.rs @@ -32,7 +32,7 @@ macro_rules! crash( ($exitcode:expr, $($args:expr),+) => ({ safe_write!(&mut ::std::io::stderr(), "{}: error: ", ::NAME); safe_writeln!(&mut ::std::io::stderr(), $($args),+); - unsafe { self::libc::exit($exitcode as self::libc::c_int); } + unsafe { ::util::libc::exit($exitcode as ::util::libc::c_int); } }) ) @@ -40,7 +40,7 @@ macro_rules! crash( #[macro_export] macro_rules! exit( ($exitcode:expr) => ({ - unsafe { self::libc::exit($exitcode); } + unsafe { ::util::libc::exit($exitcode); } }) )