Skip to content

Commit aa0f5b5

Browse files

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,7 @@ fn test_linux(target: &str) {
26752675
"elf.h",
26762676
"fcntl.h",
26772677
"glob.h",
2678+
[gnu]: "gnu/libc-version.h",
26782679
"grp.h",
26792680
"iconv.h",
26802681
"ifaddrs.h",

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,11 @@ extern "C" {
13261326
pub fn malloc_trim(__pad: ::size_t) -> ::c_int;
13271327
}
13281328

1329+
extern "C" {
1330+
pub fn gnu_get_libc_release() -> *const ::c_char;
1331+
pub fn gnu_get_libc_version() -> *const ::c_char;
1332+
}
1333+
13291334
cfg_if! {
13301335
if #[cfg(any(target_arch = "x86",
13311336
target_arch = "arm",

0 commit comments

Comments
 (0)