From 0976744085bcd7ebda9779b02d78a85254b3e352 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 24 Jun 2026 13:16:45 +0000 Subject: [PATCH] libnetbsd: Avoid bringing in all of sys/param.h in sys/types.h It's okay to hard-code NBBY, as the value is somewhat unlikely to change. The pollution from sys/param.h makes it harder to import test code from NetBSD since it can introduce conflicting definitions, e.g., MIN()/MAX(). Reviewed by: ngie MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57754 --- lib/libnetbsd/sys/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libnetbsd/sys/types.h b/lib/libnetbsd/sys/types.h index 97040b5cdec2..5176371d898f 100644 --- a/lib/libnetbsd/sys/types.h +++ b/lib/libnetbsd/sys/types.h @@ -31,6 +31,6 @@ #include_next -#include /* For NBBY */ +#define NBBY 8 #endif