Include opt_platform.h to ensure FDT is defined

We need to include opt_platform.h as it's where FDT will be defined.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2022-10-04 17:31:01 +01:00
parent 89a9a13c1a
commit 47218e711e
3 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,8 @@
# $FreeBSD$
#
#include "opt_platform.h"
#ifdef FDT
#include <sys/types.h>
#include <dev/ofw/ofw_bus.h>

View file

@ -25,6 +25,8 @@
* SUCH DAMAGE.
*/
#include "opt_platform.h"
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

View file

@ -30,6 +30,8 @@
# $FreeBSD$
#
#include "opt_platform.h"
#include <machine/bus.h>
#ifdef FDT