Upgrade jamvm to 1.4.4 (#1030)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5743 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
24
lang/jamvm/patches/200-pthread_hacks.patch
Normal file
24
lang/jamvm/patches/200-pthread_hacks.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- jamvm-1.4.4/src/os/linux/os.c 2006-10-29 23:56:43.000000000 +0100
|
||||
+++ jamvm-1.4.4.new/src/os/linux/os.c 2006-12-09 21:17:43.000000000 +0100
|
||||
@@ -31,15 +31,18 @@
|
||||
pthread_attr_t attr;
|
||||
void *addr;
|
||||
int size;
|
||||
-
|
||||
+#if 0
|
||||
+/* Not implemented in uClibc yet */
|
||||
pthread_getattr_np(pthread_self(), &attr);
|
||||
- pthread_attr_getstack(&attr, &addr, &size);
|
||||
+#endif
|
||||
+ pthread_attr_getstackaddr(&attr, &addr);
|
||||
|
||||
return addr+size;
|
||||
}
|
||||
|
||||
int nativeAvailableProcessors() {
|
||||
- return get_nprocs();
|
||||
+/* We assume embedded systems concerned are mono-processor only */
|
||||
+ return 1;
|
||||
}
|
||||
|
||||
char *nativeLibPath() {
|
Reference in New Issue
Block a user