* os_dir.c: Change GC_task_self to be static everywhere on Darwin.
Allows gcc4.0 to compile.
svn path=/trunk/mono/; revision=39390
+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>
/* 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) { \