aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/pthread.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-03 15:41:39 +0000
committerrsc <devnull@localhost>2005-02-03 15:41:39 +0000
commit46cfcf550f190fdef3496ae81d52c621862d01b1 (patch)
treefd5842cf03024f718003e5770a6d06c19083f6d9 /src/libthread/pthread.c
parent3842363abcf0fba2701a960d03ab5e9a24cafc8c (diff)
downloadplan9port-46cfcf550f190fdef3496ae81d52c621862d01b1.tar.gz
plan9port-46cfcf550f190fdef3496ae81d52c621862d01b1.tar.bz2
plan9port-46cfcf550f190fdef3496ae81d52c621862d01b1.zip
stupid gcc
Diffstat (limited to 'src/libthread/pthread.c')
-rw-r--r--src/libthread/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c
index 7404817d..46bb396a 100644
--- a/src/libthread/pthread.c
+++ b/src/libthread/pthread.c
@@ -148,7 +148,7 @@ _pthreadinit(void)
* thread IDs.
*/
id = pthread_self();
- if(*(ulong*)&id < 1024*1024)
+ 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);