diff options
author | Geoff Norton <grompf@sublimeintervention.com> | 2005-01-24 01:28:02 +0300 |
---|---|---|
committer | Geoff Norton <grompf@sublimeintervention.com> | 2005-01-24 01:28:02 +0300 |
commit | 89965cbb08690b40cb83bd9acc5b9a57f23dca13 (patch) | |
tree | 7bc08c7ee1a227ec9fcd467eb74d03471d82526a /libgc/os_dep.c | |
parent | 01385e1b0aaf5b631288313cb60c9a78710d53f7 (diff) |
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.
svn path=/trunk/mono/; revision=39390
Diffstat (limited to 'libgc/os_dep.c')
-rw-r--r-- | libgc/os_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgc/os_dep.c b/libgc/os_dep.c index 0e300f840eb..6c19e060afb 100644 --- a/libgc/os_dep.c +++ b/libgc/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) { \ |