]> granicus.if.org Git - gc/commitdiff
Tue May 3 16:28:26 CEST 2005 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 3 May 2005 13:54:00 +0000 (13:54 +0000)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 11:25:00 +0000 (15:25 +0400)
* os_dep.c: remove usage of libc private symbol.

svn path=/trunk/mono/; revision=43924

ChangeLog
os_dep.c

index 62c2c78e8b65ccd94e50e3663c4894300ed7c0b3..6b4815832df8c18aefbc7e22d693276617262817 100644 (file)
--- a/ChangeLog
+++ b/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):
index 5c2bf165102a9acb175e2047ef85bbb46e43ae3f..e224af79d833c81125fccb8ee865ed8948f47486 100644 (file)
--- 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");