Only include sys/boot.h if LINUX_BOOT_ABI is defined

Only include sys/boot.h if LINUX_BOOT_ABI is defined in
sys/arm/arm/machdep.c

Not doing this prevents kernels that do not define LINUX_BOOT_ABI from
being build with gcc (at least 4.2.1).

Reviewed by:	mmel
Sponsored by:	Smartcom - Bulgaria AD
Differential Revision:	https://reviews.freebsd.org/D8459
This commit is contained in:
Stanislav Galabov 2016-11-07 10:54:56 +00:00
parent cb1b0068a1
commit 921081191d

View File

@ -76,7 +76,9 @@ __FBSDID("$FreeBSD$");
#include <sys/pcpu.h>
#include <sys/ptrace.h>
#include <sys/reboot.h>
#if defined(LINUX_BOOT_ABI)
#include <sys/boot.h>
#endif
#include <sys/rwlock.h>
#include <sys/sched.h>
#include <sys/signalvar.h>