We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efec545 + 6f09370 commit b97f375Copy full SHA for b97f375
library/std/src/sys/unix/os.rs
@@ -473,10 +473,7 @@ impl Iterator for Env {
473
474
#[cfg(target_os = "macos")]
475
pub unsafe fn environ() -> *mut *const *const c_char {
476
- extern "C" {
477
- fn _NSGetEnviron() -> *mut *const *const c_char;
478
- }
479
- _NSGetEnviron()
+ libc::_NSGetEnviron() as *mut *const *const c_char
480
}
481
482
#[cfg(not(target_os = "macos"))]
0 commit comments