summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'version.c')
-rw-r--r--version.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/version.c b/version.c
new file mode 100644
index 0000000..63146f8
--- /dev/null
+++ b/version.c
@@ -0,0 +1,14 @@
+#include <stdlib.h> // getenv
+
+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";
+}