diff options
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -433,7 +433,8 @@ GC_INNER GC_bool GC_register_main_static_data(void) # endif #endif /* __GLIBC__ >= 2 || HOST_ANDROID */ -#if (defined(FREEBSD) && __FreeBSD__ >= 7) || defined(__DragonFly__) +#if defined(__DragonFly__) || defined(__FreeBSD_kernel__) \ + || (defined(FREEBSD) && __FreeBSD__ >= 7) /* 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 |