Skip to content

Commit 87645ed

Browse files
committed
Auto merge of #2303 - devnexen:mac_getenviron_env, r=JohnTitor
apple as _NSGetEnviron
2 parents a6773b8 + 3485d16 commit 87645ed

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ fn test_apple(target: &str) {
175175
"aio.h",
176176
"CommonCrypto/CommonCrypto.h",
177177
"CommonCrypto/CommonRandom.h",
178+
"crt_externs.h",
178179
"ctype.h",
179180
"dirent.h",
180181
"dlfcn.h",

libc-test/semver/apple.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,7 @@ YESSTR
14441444
_IOFBF
14451445
_IOLBF
14461446
_IONBF
1447+
_NSGetEnviron
14471448
_NSGetExecutablePath
14481449
_POSIX_VDISABLE
14491450
_PTHREAD_COND_SIG_init

src/unix/bsd/apple/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4416,6 +4416,7 @@ extern "C" {
44164416
pub fn CCRandomGenerateBytes(bytes: *mut ::c_void, size: ::size_t) -> ::CCRNGStatus;
44174417

44184418
pub fn _NSGetExecutablePath(buf: *mut ::c_char, bufsize: *mut u32) -> ::c_int;
4419+
pub fn _NSGetEnviron() -> *mut *mut *mut ::c_char;
44194420

44204421
pub fn mach_vm_map(
44214422
target_task: ::vm_map_t,

0 commit comments

Comments
 (0)