mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
common: make libc reference in util look for the libc in util
This commit is contained in:
parent
99b0a11fe0
commit
afe56a95e9
1 changed files with 2 additions and 2 deletions
|
@ -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); }
|
||||
})
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue