summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/libc.h2
-rw-r--r--src/internal/version.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/internal/libc.h b/src/internal/libc.h
index 7307a738..f536eaf6 100644
--- a/src/internal/libc.h
+++ b/src/internal/libc.h
@@ -43,6 +43,8 @@ extern hidden size_t __hwcap;
extern hidden size_t __sysinfo;
extern char *__progname, *__progname_full;
+extern hidden const char __libc_version[];
+
/* Designed to avoid any overhead in non-threaded processes */
hidden void __lock(volatile int *);
hidden void __unlock(volatile int *);
diff --git a/src/internal/version.c b/src/internal/version.c
index 0d6e1f82..08bbf5b2 100644
--- a/src/internal/version.c
+++ b/src/internal/version.c
@@ -1,9 +1,4 @@
#include "version.h"
#include "libc.h"
-static const char version[] = VERSION;
-
-hidden const char *__libc_get_version()
-{
- return version;
-}
+const char __libc_version[] = VERSION;