summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/ofw/ofw_fdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/dev/ofw/ofw_fdt.c')
-rw-r--r--freebsd/sys/dev/ofw/ofw_fdt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/dev/ofw/ofw_fdt.c b/freebsd/sys/dev/ofw/ofw_fdt.c
index 6bdaf89b..ae3da8e4 100644
--- a/freebsd/sys/dev/ofw/ofw_fdt.c
+++ b/freebsd/sys/dev/ofw/ofw_fdt.c
@@ -97,12 +97,18 @@ static ofw_method_t ofw_fdt_methods[] = {
{ 0, 0 }
};
+#ifndef __rtems__
static ofw_def_t ofw_fdt = {
+#else /* __rtems__ */
+ofw_def_t ofw_fdt = {
+#endif /* __rtems__ */
OFW_FDT,
ofw_fdt_methods,
0
};
+#ifndef __rtems__
OFW_DEF(ofw_fdt);
+#endif /* __rtems__ */
static void *fdtp = NULL;