mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
kboot: Use #define for DT_DIR
Sponsored by: Netflix
This commit is contained in:
parent
8483b3add8
commit
0ea00e71a2
|
@ -58,7 +58,7 @@ add_node_to_fdt(void *buffer, const char *path, int fdt_offset)
|
|||
strcmp(dent->d_name, "..") == 0)
|
||||
continue;
|
||||
d_type = dent->d_type;
|
||||
if (d_type == 4 /* DT_DIR */) {
|
||||
if (d_type == HOST_DT_DIR) {
|
||||
child_offset = fdt_add_subnode(buffer, fdt_offset,
|
||||
dent->d_name);
|
||||
if (child_offset < 0) {
|
||||
|
|
Loading…
Reference in a new issue