aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-06-24 13:16:45 +0000
committerMark Johnston <markj@FreeBSD.org>2026-06-24 14:14:25 +0000
commit0976744085bcd7ebda9779b02d78a85254b3e352 (patch)
tree7adb1aade861dc04e60432083be96c2ae1bf03ff
parent7e7f8b2c66410bcc6408482be73bd9c059e2bbe2 (diff)
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
-rw-r--r--lib/libnetbsd/sys/types.h2
1 files changed, 1 insertions, 1 deletions
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 <sys/types.h>
-#include <sys/param.h> /* For NBBY */
+#define NBBY 8
#endif