summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dyn_load.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 110d9b15..77db3651 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -131,7 +131,10 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0;
};
# endif
# else
+ EXTERN_C_BEGIN /* Workaround missing extern "C" around _DYNAMIC */
+ /* symbol in link.h of some Linux hosts. */
# include <link.h>
+ EXTERN_C_END
# endif
#endif