diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2005-05-03 17:54:00 +0400 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2005-05-03 17:54:00 +0400 |
commit | 2e2d4e792fad7bce096178f753d65fe92a40f03e (patch) | |
tree | 09085c41b5cccd5f57296381c394f0c481a395af /libgc | |
parent | 481ad3362a821ec8f11fbd3b3c4aada9b3fb8285 (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')
-rw-r--r-- | libgc/ChangeLog | 5 | ||||
-rw-r--r-- | libgc/os_dep.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libgc/ChangeLog b/libgc/ChangeLog index 2707231a130..13335fe8251 100644 --- a/libgc/ChangeLog +++ b/libgc/ChangeLog @@ -1,3 +1,8 @@ + +Tue May 3 16:28:26 CEST 2005 Paolo Molaro <lupus@ximian.com> + + * os_dep.c: remove usage of libc private symbol. + 2005-05-02 Miguel de Icaza <miguel@novell.com> * pthread_stop_world.c (GC_restart_handler, GC_suspend_handler): 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"); |