summaryrefslogtreecommitdiffstats
path: root/libc/unistd/confstr.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-04-08 10:33:09 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-04-08 10:33:09 +0200
commitc164cf038c522d153bf9ac6c4bddabe0be81a7e1 (patch)
treea8c4e1ec71146aaef72d8ea4734b7b36f980397f /libc/unistd/confstr.c
parent384a55ef9f3387ed33eadab3eefe5057b4daeadb (diff)
downloaduClibc-alpine-c164cf038c522d153bf9ac6c4bddabe0be81a7e1.tar.bz2
uClibc-alpine-c164cf038c522d153bf9ac6c4bddabe0be81a7e1.tar.xz
confstr: properly stringify version parts
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/unistd/confstr.c')
-rw-r--r--libc/unistd/confstr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/unistd/confstr.c b/libc/unistd/confstr.c
index 957ee4d27..fc0bd599e 100644
--- a/libc/unistd/confstr.c
+++ b/libc/unistd/confstr.c
@@ -52,11 +52,13 @@ size_t confstr (int name, char *buf, size_t len)
string_len = sizeof("linuxthreads-x.xx");
# elif defined __UCLIBC_HAS_THREADS_NATIVE__
# define __NPTL_VERSION ("NPTL " \
- #__UCLIBC_MAJOR__ "." \
- #__UCLIBC_MINOR__ "." \
- #__UCLIBC_SUBLEVEL__)
+ __stringify(__UCLIBC_MAJOR__) "." \
+ __stringify(__UCLIBC_MINOR__) "." \
+ __stringify(__UCLIBC_SUBLEVEL__))
string = __NPTL_VERSION;
string_len = sizeof(__NPTL_VERSION);
+# else
+# error unable to determine thread impl
# endif
break;
#endif