Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2016 10:54:56 +0000 (UTC)
From:      Stanislav Galabov <sgalabov@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308406 - head/sys/arm/arm
Message-ID:  <201611071054.uA7Asu3V086622@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sgalabov
Date: Mon Nov  7 10:54:56 2016
New Revision: 308406
URL: https://svnweb.freebsd.org/changeset/base/308406

Log:
  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

Modified:
  head/sys/arm/arm/machdep.c

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Mon Nov  7 10:26:44 2016	(r308405)
+++ head/sys/arm/arm/machdep.c	Mon Nov  7 10:54:56 2016	(r308406)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611071054.uA7Asu3V086622>