mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 18:28:18 +00:00
Merge pull request #274 from Arcterus/util-libc
common: make libc reference in util look for the libc in util
This commit is contained in:
commit
898e6082f6
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ macro_rules! crash(
|
||||||
($exitcode:expr, $($args:expr),+) => ({
|
($exitcode:expr, $($args:expr),+) => ({
|
||||||
safe_write!(&mut ::std::io::stderr(), "{}: error: ", ::NAME);
|
safe_write!(&mut ::std::io::stderr(), "{}: error: ", ::NAME);
|
||||||
safe_writeln!(&mut ::std::io::stderr(), $($args),+);
|
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_export]
|
||||||
macro_rules! exit(
|
macro_rules! exit(
|
||||||
($exitcode:expr) => ({
|
($exitcode:expr) => ({
|
||||||
unsafe { self::libc::exit($exitcode); }
|
unsafe { ::util::libc::exit($exitcode); }
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue