diff options
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/version.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/libgcompat/version.c b/libgcompat/version.c index 99c2c8c..1b7687c 100644 --- a/libgcompat/version.c +++ b/libgcompat/version.c @@ -1,16 +1,28 @@ +#include <stddef.h> /* NULL */ #include <stdlib.h> /* getenv */ +/** + * Get glibc release. + * + * LSB 5.0: LSB-Core-generic/baselib-gnu-get-libc-version-1.html + */ +const char *gnu_get_libc_release(void) +{ + return "stable"; +} + +/** + * Get glibc version. + * + * LSB 5.0: LSB-Core-generic/baselib-gnu-get-libc-version-1.html + */ const char *gnu_get_libc_version(void) { char *ver = getenv("GLIBC_FAKE_VERSION"); + if (ver == NULL) { ver = "2.8"; } return ver; } - -const char *gnu_get_libc_release(void) -{ - return "stable"; -} |