summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/internals.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-01 09:04:55 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-01 09:04:55 +0000
commit5cbc6a7ae1b85577c1f99f6e1175e58a7b3af4d3 (patch)
treedff76e842521f8eea8c231611f3b43c6aa454568 /libpthread/linuxthreads/internals.h
parenta931ffc6487660a5deafb97937e8d30b12e19d25 (diff)
Use a funky version in a probably vein attempt at preventing gdb
from dlopen()'ing glibc's libthread_db library...
Diffstat (limited to 'libpthread/linuxthreads/internals.h')
-rw-r--r--libpthread/linuxthreads/internals.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h
index 45439f363..2c662582a 100644
--- a/libpthread/linuxthreads/internals.h
+++ b/libpthread/linuxthreads/internals.h
@@ -29,8 +29,11 @@
#include "semaphore.h"
#include "../linuxthreads_db/thread_dbP.h"
-/* Pretend to be glibc 2.3 as far as gdb is concerned */
-#define VERSION "2.3"
+/* Use a funky version in a probably vein attempt at preventing gdb
+ * from dlopen()'ing glibc's libthread_db library... */
+#define STRINGIFY(s) STRINGIFY2 (s)
+#define STRINGIFY2(s) #s
+#define VERSION STRINGIFY(__UCLIBC_MAJOR__) "." STRINGIFY(__UCLIBC_MINOR__) "." STRINGIFY(__UCLIBC_SUBLEVEL__)
#ifndef THREAD_GETMEM
# define THREAD_GETMEM(descr, member) descr->member