summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-09-27 12:33:37 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-09-27 12:33:37 +0200
commit391c4414b3b3768bf98dde0959a64e435751dfe7 (patch)
tree00b098d581c7f2d3d647f4d535cbdf4e44283d6d /libpthread/nptl
parent2e84309879728a97265a9be3da7de98ab8395c8b (diff)
downloaduClibc-alpine-391c4414b3b3768bf98dde0959a64e435751dfe7.tar.bz2
uClibc-alpine-391c4414b3b3768bf98dde0959a64e435751dfe7.tar.xz
nptl_db: Reinstate version.h for nptl
This time do not create the header file at each build Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libpthread/nptl')
-rw-r--r--libpthread/nptl/init.c3
-rw-r--r--libpthread/nptl/version.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/nptl/init.c b/libpthread/nptl/init.c
index 513d39de4..0c55bbb8f 100644
--- a/libpthread/nptl/init.c
+++ b/libpthread/nptl/init.c
@@ -31,6 +31,7 @@
#include <fork.h>
#include <smp.h>
#include <lowlevellock.h>
+#include <version.h>
#ifndef __NR_set_tid_address
@@ -58,8 +59,6 @@
size_t __static_tls_size;
size_t __static_tls_align_m1;
-#define VERSION __stringify(__UCLIBC_MAJOR__) "." __stringify(__UCLIBC_MINOR__) "." __stringify(__UCLIBC_SUBLEVEL__)
-
/* Version of the library, used in libthread_db to detect mismatches. */
static const char nptl_version[] __attribute_used__ = VERSION;
diff --git a/libpthread/nptl/version.h b/libpthread/nptl/version.h
new file mode 100644
index 000000000..f294f5c97
--- /dev/null
+++ b/libpthread/nptl/version.h
@@ -0,0 +1 @@
+#define VERSION __stringify(__UCLIBC_MAJOR__) "." __stringify(__UCLIBC_MINOR__) "." __stringify(__UCLIBC_SUBLEVEL__)