summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-02-20 23:03:29 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-02-20 23:03:29 +0300
commitcbe7f47df136246842c7e8e09d214d56507af878 (patch)
treec51a3239ec0c7db41886bf04b4d590d1475fa358 /dyn_load.c
parentd1fb0c1b68af0e10479c071bdb24b3e2bfb739ed (diff)
downloadbdwgc-cbe7f47df136246842c7e8e09d214d56507af878.tar.gz
Fix 'anonymous type with no linkage used to declare variable' in GC source
Issue #206 (bdwgc). * dyn_load.c [DARWIN] (GC_dyld_sections): Provide some name to struct. * finalize.c (GC_fnlz_roots): Likewise. * os_dep.c [MPROTECT_VDB && DARWIN] (GC_ports, GC_mprotect_thread_notify, GC_mprotect_thread): Likewise.
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 9db31861..c3cd186b 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -1247,7 +1247,7 @@ GC_INNER void GC_register_dynamic_libraries(void)
/*#define DARWIN_DEBUG*/
/* Writable sections generally available on Darwin. */
-STATIC const struct {
+STATIC const struct dyld_sections_s {
const char *seg;
const char *sect;
} GC_dyld_sections[] = {