svn commit: r200348 - projects/ppc64/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Dec 10 05:08:58 UTC 2009


Author: nwhitehorn
Date: Thu Dec 10 05:08:58 2009
New Revision: 200348
URL: http://svn.freebsd.org/changeset/base/200348

Log:
  Fix some module building. Long way to go here.

Modified:
  projects/ppc64/sys/powerpc/include/elf.h
  projects/ppc64/sys/powerpc/include/reg.h

Modified: projects/ppc64/sys/powerpc/include/elf.h
==============================================================================
--- projects/ppc64/sys/powerpc/include/elf.h	Thu Dec 10 04:27:10 2009	(r200347)
+++ projects/ppc64/sys/powerpc/include/elf.h	Thu Dec 10 05:08:58 2009	(r200348)
@@ -134,7 +134,9 @@ __ElfType(Auxinfo);
 #include <sys/proc.h>
 #include <sys/procfs.h>
 
+#ifndef KLD_MODULE
 #include "opt_compat.h"
+#endif
 
 #ifdef COMPAT_PPC32
 /*

Modified: projects/ppc64/sys/powerpc/include/reg.h
==============================================================================
--- projects/ppc64/sys/powerpc/include/reg.h	Thu Dec 10 04:27:10 2009	(r200347)
+++ projects/ppc64/sys/powerpc/include/reg.h	Thu Dec 10 05:08:58 2009	(r200348)
@@ -4,7 +4,7 @@
 #ifndef _POWERPC_REG_H_
 #define	_POWERPC_REG_H_
 
-#ifdef _KERNEL
+#if defined(_KERNEL) && !defined(KLD_MODULE)
 #include "opt_compat.h"
 #endif
 


More information about the svn-src-projects mailing list