Skip to content

Commit 2480f37

Browse files
devnexentgross35
authored andcommitted
1 parent de18637 commit 2480f37

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

libc-test/build.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,10 @@ fn test_solarish(target: &str) {
13071307
// https://github.com/gnzlbg/ctest/issues/68
13081308
"lio_listio" => true,
13091309

1310+
// Exists on illumos too but, for now, is
1311+
// [a recent addition](https://www.illumos.org/issues/17094).
1312+
"secure_getenv" if is_illumos => true,
1313+
13101314
_ => false,
13111315
}
13121316
});
@@ -4136,8 +4140,7 @@ fn test_linux(target: &str) {
41364140
"epoll_params" => true,
41374141

41384142
// FIXME(linux): Requires >= 6.12 kernel headers.
4139-
"dmabuf_cmsg" |
4140-
"dmabuf_token" => true,
4143+
"dmabuf_cmsg" | "dmabuf_token" => true,
41414144

41424145
_ => false,
41434146
}

src/unix/solarish/mod.rs

Lines changed: 2 additions & 0 deletions
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)