0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

ircd::info: Get the glibc linked ABI version.

This commit is contained in:
Jason Volk 2019-06-01 22:22:44 -07:00
parent 1f4b7a0468
commit d598bde717
2 changed files with 5 additions and 1 deletions

View file

@ -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])

View file

@ -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__)