Skip to content

Commit 351a99d

Browse files

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: libc-test/build.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,10 @@ fn test_solarish(target: &str) {
12531253
// https://github.com/gnzlbg/ctest/issues/68
12541254
"lio_listio" => true,
12551255

1256+
// Exists on illumos too but, for now, is
1257+
// [a recent addition](https://www.illumos.org/issues/17094).
1258+
"secure_getenv" if is_illumos => true,
1259+
12561260
_ => false,
12571261
}
12581262
});
@@ -4064,8 +4068,7 @@ fn test_linux(target: &str) {
40644068
"epoll_params" => true,
40654069

40664070
// FIXME(linux): Requires >= 6.12 kernel headers.
4067-
"dmabuf_cmsg" |
4068-
"dmabuf_token" => true,
4071+
"dmabuf_cmsg" | "dmabuf_token" => true,
40694072

40704073
_ => false,
40714074
}

Diff for: src/unix/solarish/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3201,6 +3201,8 @@ extern "C" {
32013201
pub fn arc4random() -> u32;
32023202
pub fn arc4random_buf(buf: *mut c_void, nbytes: size_t);
32033203
pub fn arc4random_uniform(upper_bound: u32) -> u32;
3204+
3205+
pub fn secure_getenv(name: *const c_char) -> *mut c_char;
32043206
}
32053207

32063208
#[link(name = "sendfile")]

0 commit comments

Comments
 (0)