mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::info: Get the glibc linked ABI version.
This commit is contained in:
parent
1f4b7a0468
commit
d598bde717
2 changed files with 5 additions and 1 deletions
|
@ -774,6 +774,7 @@ RB_CHK_SYSHEADER(sys/syscall.h, [SYS_SYSCALL_H])
|
|||
RB_CHK_SYSHEADER(sys/utsname.h, [SYS_UTSNAME_H])
|
||||
RB_CHK_SYSHEADER(sys/ioctl.h, [SYS_IOCTL_H])
|
||||
RB_CHK_SYSHEADER(sys/mman.h, [SYS_MMAN_H])
|
||||
RB_CHK_SYSHEADER(gnu/libc-version.h, [GNU_LIBC_VERSION_H])
|
||||
|
||||
dnl linux platform
|
||||
RB_CHK_SYSHEADER(sys/auxv.h, [SYS_AUXV_H])
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <RB_INC_SYS_RESOURCE_H
|
||||
#include <RB_INC_UNISTD_H
|
||||
#include <RB_INC_CPUID_H
|
||||
#include <RB_INC_GNU_LIBC_VERSION_H
|
||||
|
||||
decltype(ircd::info::credits)
|
||||
ircd::info::credits
|
||||
|
@ -344,11 +345,13 @@ ircd::info::glibc_version_api
|
|||
}
|
||||
};
|
||||
|
||||
#ifdef HAVE_GNU_LIBC_VERSION_H
|
||||
decltype(ircd::info::glibc_version_abi)
|
||||
ircd::info::glibc_version_abi
|
||||
{
|
||||
"glibc", versions::ABI, 0, {0}, "<unknown>" //TODO: get this.
|
||||
"glibc", versions::ABI, 0, {0}, ::gnu_get_libc_version()
|
||||
};
|
||||
#endif HAVE_GNU_LIBC_VERSION_H
|
||||
|
||||
#endif defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__)
|
||||
|
||||
|
|
Loading…
Reference in a new issue