diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 2f1add17b318..06e517ba76d1 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -36,7 +36,9 @@ __FBSDID("$FreeBSD$"); #include #include #include +#ifdef EFI_ZFS_BOOT #include +#endif #include #include #include diff --git a/stand/i386/loader/main.c b/stand/i386/loader/main.c index d6831e68e3b4..ceeaf7260acc 100644 --- a/stand/i386/loader/main.c +++ b/stand/i386/loader/main.c @@ -40,7 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include "bootstrap.h" @@ -50,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include "btxv86.h" #ifdef LOADER_ZFS_SUPPORT +#include #include "libzfs.h" #endif diff --git a/stand/i386/zfsboot/zfsboot.c b/stand/i386/zfsboot/zfsboot.c index 9e66e89f4d43..ed791f14a1f3 100644 --- a/stand/i386/zfsboot/zfsboot.c +++ b/stand/i386/zfsboot/zfsboot.c @@ -26,7 +26,9 @@ __FBSDID("$FreeBSD$"); #endif #include #include +#ifdef LOADER_ZFS_SUPPORT #include +#endif #include #include