Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2010-04-19 22:49:27 +0400
committerJonathan Pryor <jpryor@novell.com>2010-04-19 22:49:27 +0400
commit26311c107866ff0a547ff4923ade81c720d7d6f6 (patch)
tree016f1709e369ff301a6dab95b2004e31263e6801 /libgc/include
parent3e080121ace690686bb7ac45e23dc9fea8076d10 (diff)
* include/private/gcconfig.h: Android platforms are built atop Linux,
don't use glibc, and uses `environ` instead of `__environ`. * configure.in: Use AC_CHECK_LIB() to check for pthread instead of just blindly linking to -lpthread, as Android includes pthread support within libc and doesn't provide a separate libpthread. svn path=/trunk/mono/; revision=155747
Diffstat (limited to 'libgc/include')
-rw-r--r--libgc/include/private/gcconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgc/include/private/gcconfig.h b/libgc/include/private/gcconfig.h
index 860195c857f..3d12de89232 100644
--- a/libgc/include/private/gcconfig.h
+++ b/libgc/include/private/gcconfig.h
@@ -710,6 +710,9 @@
# if defined(__GLIBC__)&& __GLIBC__>=2
# define SEARCH_FOR_DATA_START
# else /* !GLIBC2 */
+# if defined(PLATFORM_ANDROID)
+# define __environ environ
+# endif
extern char **__environ;
# define DATASTART ((ptr_t)(&__environ))
/* hideous kludge: __environ is the first */