git: 35a36d4a54df - main - mdo: Avoid relying on header pollution

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 12 May 2026 20:05:58 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=35a36d4a54df244e93bf280345426a600e394a90

commit 35a36d4a54df244e93bf280345426a600e394a90
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-05-12 17:46:17 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-05-12 20:05:18 +0000

    mdo: Avoid relying on header pollution
    
    The uses of PAGE_SIZE and roundup2() require param.h.
    
    MFC after:      1 week
---
 usr.bin/mdo/mdo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/mdo/mdo.c b/usr.bin/mdo/mdo.c
index 879423bc0128..e72f28b237e7 100644
--- a/usr.bin/mdo/mdo.c
+++ b/usr.bin/mdo/mdo.c
@@ -10,9 +10,9 @@
  * Foundation.
  */
 
+#include <sys/param.h>
 #include <sys/errno.h>
 #include <sys/limits.h>
-#include <sys/types.h>
 #include <sys/ucred.h>
 
 #include <assert.h>