From: Paolo Molaro Date: Tue, 3 May 2005 13:54:00 +0000 (+0000) Subject: Tue May 3 16:28:26 CEST 2005 Paolo Molaro X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5196d2fe6108332f5af756109153a66f2a0c5e7a;p=gc Tue May 3 16:28:26 CEST 2005 Paolo Molaro * os_dep.c: remove usage of libc private symbol. svn path=/trunk/mono/; revision=43924 --- diff --git a/ChangeLog b/ChangeLog index 62c2c78e..6b481583 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ + +Tue May 3 16:28:26 CEST 2005 Paolo Molaro + + * os_dep.c: remove usage of libc private symbol. + 2005-05-02 Miguel de Icaza * pthread_stop_world.c (GC_restart_handler, GC_suspend_handler): diff --git a/os_dep.c b/os_dep.c index 5c2bf165..e224af79 100644 --- a/os_dep.c +++ b/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");