diff options
author | Warner Losh <[email protected]> | 2020-10-13 22:05:49 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-13 21:05:49 -0700 |
commit | b302185a9283fa93ce98d17ca9893437753ec665 (patch) | |
tree | bfb35fa1de85c884030d3b3b1371a5f6c4230d74 /module/os | |
parent | 57dc5d42b185d2983717580b7fb58bfe423cd834 (diff) |
FreeBSD: make adjustments for the standalone environment
In FreeBSD, there are three compile environments that are supported:
user land, the kernel and the bootloader / standalone. Adjust the
headers to compile in the standalone environment. Limit kernel-only
items from view when _STANDALONE is defined.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Warner Losh <[email protected]>
Closes #10998
Diffstat (limited to 'module/os')
-rw-r--r-- | module/os/freebsd/spl/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/freebsd/spl/list.c b/module/os/freebsd/spl/list.c index 8796be4a9..0f5ae6291 100644 --- a/module/os/freebsd/spl/list.c +++ b/module/os/freebsd/spl/list.c @@ -27,10 +27,10 @@ * Generic doubly-linked list implementation */ +#include <sys/param.h> #include <sys/list.h> #include <sys/list_impl.h> #include <sys/types.h> -#include <sys/sysmacros.h> #include <sys/debug.h> #define list_d2l(a, obj) ((list_node_t *)(((char *)obj) + (a)->list_offset)) |