summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/symbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/symbol.h')
-rw-r--r--Build/source/utils/asymptote/symbol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/symbol.h b/Build/source/utils/asymptote/symbol.h
index b16d311934e..4ed43d3f148 100644
--- a/Build/source/utils/asymptote/symbol.h
+++ b/Build/source/utils/asymptote/symbol.h
@@ -29,8 +29,10 @@ struct GCInit {
GC_set_free_space_divisor(2);
mem::compact(0);
GC_INIT();
+#ifdef HAVE_PTHREAD
GC_allow_register_threads();
#endif
+#endif
// Put the symbol table into a state where symbols can be translated.
initTable();