kboot: Use #define for DT_DIR

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-12-04 13:25:54 -07:00
parent 8483b3add8
commit 0ea00e71a2

View file

@ -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) {