* XplatUIX11.cs: Fixed menu coord calculations
[mono.git] / libgc / os_dep.c
index 0e300f840eb20798b72d6af6fbab9dd8b1cdb4cd..6c19e060afb06fdf95719185a70c856c653d4178 100644 (file)
@@ -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) { \