Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / libgc / gc_dlopen.c
index 4c690edcfe49c3c923722a34349aba2bb7576978..6ca9e996fb297584209c43c2dbfbc4445d1c75ea 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "private/gc_priv.h"
 
-# if (defined(GC_PTHREADS) && !defined(GC_DARWIN_THREADS)) \
+# if defined(DYNAMIC_LOADING) && (defined(GC_PTHREADS) && !defined(GC_DARWIN_THREADS)) \
       || defined(GC_SOLARIS_THREADS)
 
 # if defined(dlopen) && !defined(GC_USE_LD_WRAP)