Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gnu_get_[version|release] for glibc #2862

Merged
merged 2 commits into from Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/build.rs
Expand Up @@ -2675,6 +2675,7 @@ fn test_linux(target: &str) {
"elf.h",
"fcntl.h",
"glob.h",
"gnu/libc-version.h",
LegNeato marked this conversation as resolved.
Show resolved Hide resolved
"grp.h",
"iconv.h",
"ifaddrs.h",
Expand Down
5 changes: 5 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -1326,6 +1326,11 @@ extern "C" {
pub fn malloc_trim(__pad: ::size_t) -> ::c_int;
}

extern "C" {
pub fn gnu_get_libc_release() -> *const ::c_char;
pub fn gnu_get_libc_version() -> *const ::c_char;
}

cfg_if! {
if #[cfg(any(target_arch = "x86",
target_arch = "arm",
Expand Down