summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-04-22 13:54:12 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:58 +0200
commit583e58963af8a38848e91d5fab2039e42d6cb911 (patch)
tree5fd9d6a0e553975c947502a31b671c416419174c /os_dep.c
parent869247753c89e4fc54121343396e01d4fb9dd08d (diff)
2011-04-22 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c (GC_get_stack_base): Implement for Android (same as for Linux). * pthread_support.c (GC_get_nprocs): Return 1 (instead of -1) if failed to open "stat" file (not to issue a warning twice); update the comment. * pthread_support.c (GC_thr_init): Call sysconf() on Android to get the number of CPUs.
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_dep.c b/os_dep.c
index 75f9c7a..a562b79 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -1222,7 +1222,7 @@ GC_INNER word GC_page_size = 0;
}
#endif /* !AMIGA, !BEOS, !OPENBSD, !OS2, !Windows */
-#if defined(GC_LINUX_THREADS) && !defined(NACL)
+#if (defined(GC_LINUX_THREADS) || defined(PLATFORM_ANDROID)) && !defined(NACL)
# include <pthread.h>
/* extern int pthread_getattr_np(pthread_t, pthread_attr_t *); */