summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dyn_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyn_load.c b/dyn_load.c
index d036364e..0271d71c 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -422,7 +422,7 @@ GC_INNER GC_bool GC_register_main_static_data(void)
# endif
#endif /* __GLIBC__ >= 2 || PLATFORM_ANDROID */
-#if (defined(FREEBSD) && __FreeBSD__ >= 7)
+#if (defined(FREEBSD) && __FreeBSD__ >= 7) || defined(__DragonFly__)
/* On the FreeBSD system, any target system at major version 7 shall */
/* have dl_iterate_phdr; therefore, we need not make it weak as below. */
# ifndef HAVE_DL_ITERATE_PHDR