tstupid gcc - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 46cfcf550f190fdef3496ae81d52c621862d01b1
(DIR) parent 3842363abcf0fba2701a960d03ab5e9a24cafc8c
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 3 Feb 2005 15:41:39 +0000
stupid gcc
Diffstat:
M src/libthread/pthread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c
t@@ -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);