Module Name: src
Committed By: dsl
Date: Mon Jan 7 23:40:53 UTC 2013
Modified Files:
src/sys/arch/alpha/include: param.h
Log Message:
Only include machine/cpu.h if _KERNEL is defined.
Fixes alpha userspace build (esp. pstat).
NFI why it worked before at all.
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/alpha/include/param.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/include/param.h
diff -u src/sys/arch/alpha/include/param.h:1.41 src/sys/arch/alpha/include/param.h:1.42
--- src/sys/arch/alpha/include/param.h:1.41 Fri Feb 10 17:35:50 2012
+++ src/sys/arch/alpha/include/param.h Mon Jan 7 23:40:52 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.41 2012/02/10 17:35:50 para Exp $ */
+/* $NetBSD: param.h,v 1.42 2013/01/07 23:40:52 dsl Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -47,7 +47,9 @@
#define MACHINE_ARCH "alpha"
#define MID_MACHINE MID_ALPHA
+#ifdef _KERNEL
#include <machine/cpu.h>
+#endif
#define NBPG (1 << ALPHA_PGSHIFT) /* bytes/page */
#define PGOFSET (NBPG-1) /* byte off. into pg */