diff options
author | Alex White <alex.white@oarcorp.com> | 2022-03-09 12:47:43 -0600 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-03-10 08:22:39 +0100 |
commit | 22e531d7f0f6b9f5834438e15b11a748aa194a8a (patch) | |
tree | 6fe8947c694fbf7fd979dbde61c67456a5212859 | |
parent | if_xae: Port to RTEMS (diff) | |
download | rtems-libbsd-22e531d7f0f6b9f5834438e15b11a748aa194a8a.tar.bz2 |
if_xae: Fix non-FDT BSP build error
This fixes a compiler error that would occur for every BSP that does not
define `BSP_FDT_IS_SUPPORTED`. The fdt headers should always be included
to provide the needed definitions.
-rw-r--r-- | freebsd/sys/dev/xilinx/axidma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/dev/xilinx/axidma.c b/freebsd/sys/dev/xilinx/axidma.c index 20cd7f23..77025c0a 100644 --- a/freebsd/sys/dev/xilinx/axidma.c +++ b/freebsd/sys/dev/xilinx/axidma.c @@ -52,11 +52,17 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_extern.h> #include <vm/vm_page.h> +#ifndef __rtems__ #ifdef FDT #include <dev/fdt/fdt_common.h> #include <dev/ofw/ofw_bus.h> #include <dev/ofw/ofw_bus_subr.h> #endif +#else +#include <dev/fdt/fdt_common.h> +#include <dev/ofw/ofw_bus.h> +#include <dev/ofw/ofw_bus_subr.h> +#endif /* __rtems__ */ #include <dev/xdma/xdma.h> #include <dev/xilinx/axidma.h> |