Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Norton <grompf@sublimeintervention.com>2005-01-24 01:28:02 +0300
committerGeoff Norton <grompf@sublimeintervention.com>2005-01-24 01:28:02 +0300
commit89965cbb08690b40cb83bd9acc5b9a57f23dca13 (patch)
tree7bc08c7ee1a227ec9fcd467eb74d03471d82526a /libgc/os_dep.c
parent01385e1b0aaf5b631288313cb60c9a78710d53f7 (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.c2
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) { \