From: Geoff Norton Date: Sun, 23 Jan 2005 22:28:02 +0000 (+0000) Subject: 2005-01-23 Geoff Norton X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3c7c2200a1874e742b4f68ddf8154fd5add8af5;p=gc 2005-01-23 Geoff Norton * os_dir.c: Change GC_task_self to be static everywhere on Darwin. Allows gcc4.0 to compile. svn path=/trunk/mono/; revision=39390 --- diff --git a/ChangeLog b/ChangeLog index 865d577f..0b2a4fcc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-23 Geoff Norton + + * 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 diff --git a/os_dep.c b/os_dep.c index 0e300f84..6c19e060 100644 --- 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 - 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) { \