1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

common: make libc reference in util look for the libc in util

This commit is contained in:
Arcterus 2014-06-18 20:19:50 -07:00
parent 99b0a11fe0
commit afe56a95e9

View file

@ -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); }
})
)