summaryrefslogtreecommitdiff
path: root/boehm-gc/dyn_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'boehm-gc/dyn_load.c')
-rw-r--r--boehm-gc/dyn_load.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/boehm-gc/dyn_load.c b/boehm-gc/dyn_load.c
index 5ae0e0dcccd..1f4a63646b1 100644
--- a/boehm-gc/dyn_load.c
+++ b/boehm-gc/dyn_load.c
@@ -980,7 +980,13 @@ void GC_register_dynamic_libraries()
#ifdef DARWIN
+#ifndef __private_extern__
+#define __private_extern__ extern
#include <mach-o/dyld.h>
+#undef __private_extern__
+#else
+#include <mach-o/dyld.h>
+#endif
#include <mach-o/getsect.h>
/*#define DARWIN_DEBUG*/