]> granicus.if.org Git - gc/commitdiff
2005-01-23 Geoff Norton <gnorton@customerdna.com>
authorGeoff Norton <grompf@sublimeintervention.com>
Sun, 23 Jan 2005 22:28:02 +0000 (22:28 +0000)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 11:24:11 +0000 (15:24 +0400)
        * os_dir.c: Change GC_task_self to be static everywhere on Darwin.
        Allows gcc4.0 to compile.

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

ChangeLog
os_dep.c

index 865d577f1db69e648e9c29c407eb20ca5847c2b3..0b2a4fcc1203565d54e4f5b0b6c5dc69dd724c17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-23  Geoff Norton  <gnorton@customerdna.com>
+       
+       * os_dir.c: Change GC_task_self to be static everywhere on Darwin.
+       Allows gcc4.0 to compile.
 
 Tue Jan 18 11:19:47 CET 2005 Paolo Molaro <lupus@ximian.com>
 
index 0e300f840eb20798b72d6af6fbab9dd8b1cdb4cd..6c19e060afb06fdf95719185a70c856c653d4178 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -2195,7 +2195,7 @@ GC_bool is_ptrfree;
     /* Using vm_protect (mach syscall) over mprotect (BSD syscall) seems to
        decrease the likelihood of some of the problems described below. */
     #include <mach/vm_map.h>
-    extern mach_port_t GC_task_self;
+    static mach_port_t GC_task_self;
     #define PROTECT(addr,len) \
         if(vm_protect(GC_task_self,(vm_address_t)(addr),(vm_size_t)(len), \
                 FALSE,VM_PROT_READ) != KERN_SUCCESS) { \