The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=8fae9294d6ba714000611d1dd2263fdaf528ad62
commit 8fae9294d6ba714000611d1dd2263fdaf528ad62 Author: Warner Losh <[email protected]> AuthorDate: 2026-09-11 04:09:39 +0000 Commit: Warner Losh <[email protected]> CommitDate: 2026-09-11 04:15:27 +0000 loader: Allow this to compile w/o MD_IMAGE_SIZE defined Slight tweak to allow md.c to be compiled when MD_IMAGE_SIZE isn't defined. Sponsored by: Netflix Reviewed by: olivier, tsoome Differential Revision: https://reviews.freebsd.org/D59415 --- stand/common/md.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stand/common/md.c b/stand/common/md.c index 2c3eb5ded19b..b1179254e3c0 100644 --- a/stand/common/md.c +++ b/stand/common/md.c @@ -34,9 +34,8 @@ #define MD_BLOCK_SIZE 512 -#ifndef MD_IMAGE_SIZE -#error Must be compiled with MD_IMAGE_SIZE defined -#endif +#ifdef MD_IMAGE_SIZE + #if (MD_IMAGE_SIZE == 0 || MD_IMAGE_SIZE % MD_BLOCK_SIZE) #error Image size must be a multiple of 512. #endif @@ -152,3 +151,4 @@ md_print(int verbose) printf("MD (%u bytes)", MD_IMAGE_SIZE); return (pager_output("\n")); } +#endif
