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:
authorPaolo Molaro <lupus@oddwiz.org>2005-05-03 17:54:00 +0400
committerPaolo Molaro <lupus@oddwiz.org>2005-05-03 17:54:00 +0400
commit2e2d4e792fad7bce096178f753d65fe92a40f03e (patch)
tree09085c41b5cccd5f57296381c394f0c481a395af /libgc/os_dep.c
parent481ad3362a821ec8f11fbd3b3c4aada9b3fb8285 (diff)
Tue May 3 16:28:26 CEST 2005 Paolo Molaro <lupus@ximian.com>
* os_dep.c: remove usage of libc private symbol. svn path=/trunk/mono/; revision=43924
Diffstat (limited to 'libgc/os_dep.c')
-rw-r--r--libgc/os_dep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgc/os_dep.c b/libgc/os_dep.c
index 5c2bf165102..e224af79d83 100644
--- a/libgc/os_dep.c
+++ b/libgc/os_dep.c
@@ -941,6 +941,7 @@ ptr_t GC_get_stack_base()
/* since the correct value of __libc_stack_end never */
/* becomes visible to us. The second test works around */
/* this. */
+#if USE_LIBC_PRIVATE_SYMBOLS
if (0 != &__libc_stack_end && 0 != __libc_stack_end ) {
# ifdef IA64
/* Some versions of glibc set the address 16 bytes too */
@@ -953,6 +954,7 @@ ptr_t GC_get_stack_base()
return __libc_stack_end;
# endif
}
+#endif
f = open("/proc/self/stat", O_RDONLY);
if (f < 0 || STAT_READ(f, stat_buf, STAT_BUF_SIZE) < 2 * STAT_SKIP) {
ABORT("Couldn't read /proc/self/stat");