mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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
This commit is contained in:
1 parent
7e7f8b2c66
commit
0976744085
1 file changed
+1
-1
@@ -31,6 +31,6 @@
|
||||
|
||||
#include_next <sys/types.h>
|
||||
|
||||
#include <sys/param.h> /* For NBBY */
|
||||
#define NBBY 8
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user