f1908f36f698c9d87c5b68842e1a1a190983823b
[openwrt/svn-archive/archive.git] / lang / jamvm / patches / 200-pthread_hacks.patch
1 --- jamvm-1.4.4/src/os/linux/os.c 2006-10-29 23:56:43.000000000 +0100
2 +++ jamvm-1.4.4.new/src/os/linux/os.c 2006-12-09 21:17:43.000000000 +0100
3 @@ -31,15 +31,18 @@
4 pthread_attr_t attr;
5 void *addr;
6 int size;
7 -
8 +#if 0
9 +/* Not implemented in uClibc yet */
10 pthread_getattr_np(pthread_self(), &attr);
11 - pthread_attr_getstack(&attr, &addr, &size);
12 +#endif
13 + pthread_attr_getstackaddr(&attr, &addr);
14
15 return addr+size;
16 }
17
18 int nativeAvailableProcessors() {
19 - return get_nprocs();
20 +/* We assume embedded systems concerned are mono-processor only */
21 + return 1;
22 }
23
24 char *nativeLibPath() {