From 921081191d1a2bd40b16e8d5f9aad58fb2d46336 Mon Sep 17 00:00:00 2001 From: Stanislav Galabov Date: Mon, 7 Nov 2016 10:54:56 +0000 Subject: [PATCH] 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 --- sys/arm/arm/machdep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c index 2958b27e2718..34357cde0d51 100644 --- a/sys/arm/arm/machdep.c +++ b/sys/arm/arm/machdep.c @@ -76,7 +76,9 @@ __FBSDID("$FreeBSD$"); #include #include #include +#if defined(LINUX_BOOT_ABI) #include +#endif #include #include #include