aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/pthread.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c
index 35f6ffe3..c2cc92ed 100644
--- a/src/libthread/pthread.c
+++ b/src/libthread/pthread.c
@@ -171,21 +171,6 @@ _threadsetproc(Proc *p)
void
_pthreadinit(void)
{
- static struct utsname un;
- pthread_t id;
-
- if(uname(&un) < 0)
- fprint(2, "warning: uname failed: %r\n");
- if(strcmp(un.sysname, "Linux") == 0){
- /*
- * Want to distinguish between the old LinuxThreads pthreads
- * and the new NPTL implementation. NPTL uses much bigger
- * thread IDs.
- */
- id = pthread_self();
- if(*(ulong*)(void*)&id < 1024*1024)
- sysfatal("cannot use LinuxThreads as pthread library; see %s/src/libthread/README.Linux", get9root());
- }
pthread_key_create(&prockey, 0);
}